newt's Forum Posts

  • Just have to test on an as per basis, but as a rule of thumb you might try to not use it unless you have to.

  • First, I would suspect your condition aimdown overlaps enemy(negated) is the main issue. Inverted conditions are a bit picky on what will work, especially if your trying to use multiple instances.

    Might try for each, or do a system distance()comparison.

    Second, floor doesn't really help here as random wont return a decimal, unless you feed it one.

  • The easiest method is going to be to add some dummy sprites at the end of each platform. Then on collision with the dummy, turn the opposite direction. Like:

    -+enemy on collision with dummy

    ->enemy set angle to angle(enemy.x,enemy.y,dummy.x,dummy.y)-180

  • Ah, well that's a real pro for the web store there.

  • Ashley

    Is that needed for in app payments, or would we just need a plug?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Just for the rhetorical practise, I want to point out that Construct2 is itself released as an exe. If webapps are so great, why isn't C2 a web app?

    (Now, if Ashley pops in and announces that they're porting the C2 application to HTML5, I'll eat my hat.)

    You know, they can do some amazing things with Fruit Roll-Ups.

    Might want to investigate, just in case.

  • 1. Not sure what you mean, but I think you would just compare the x value. Like spite.x< n.

    2. Depending on your movement style you would just reference sprite.y + n amount.

    3. There are 2 way I can think of, but until families, or containers are implemented it can be a bit tricky. Right now for the first method you could add a bunch of sprites to be the barrier, and have them always set position offset from the main sprite. To do that you would need to use index's like barrier(0)set position to mainsprite(0).x+n,mainsprite(0).y+n, and barrier(1)set position to mainsprite(0).x+n+n,mainsprite(0).y+n+n. For the second, which is easier, you can make a bunch of frames, and have that non moving animation set position to the main sprite. Then on collision you just change the barrier's frame to the next.

    Also Ninja Yann

  • Perhaps an option in the exporter to save just the relevant code to a separate text file?

    If you were planning to add the game to an existing page, that would make things a little simpler.

    Might make for a nice paid version bonus.

  • I would also add a suggestion for a section for touch based games... once some exist. heh

    My niece got herself an Ipad2, and was complaining that it was limited by a lack of flash.

    Of course I had to enlighten her on html5, but had no way to show what it could do, other than show Ashley's magnificent preloader.

  • Yeah, the tools they add to the driver installer are absolutely useless.

    If you can figure out a way to just install the drivers, I would suggest that.

  • From conditions its either comparing the variable, comparing the uid, comparing one of the many other attributes such as opacity, or pick "nth".

    But as an expression in actions the only way is the index, however you can always use that in conjunction with other attributes sprite(index).height, sprite(0).x, or sprite(1).uid even.

  • Sure is, under actions in events for sprite there's options for point, box, or per pixel.

  • You can make tiled bg solid if you wanted.

  • eah it works nice, but you have to use getToken in order to do two values in one object, and I'm not sure how much how much the text conversion would slow things down.

    I'm kind of slow today. I don't get for what exactly you want to use getToken, could you please clarify?

    Do you mean storing two values in one array element? Why not simply use two elements? Yeah, slow today...

    You got it, one element/ object. So it would be something like getToken((datastructures.top),1), for x, and getToken((datastructures.top),2) for y.

    Your not slow, I'm just lazy. <img src="smileys/smiley17.gif" border="0" align="middle" />

  • The plugin newt is suggesting is indeed useful and also already exists:

    check this out

    Have been using it in a couple of test projects and it works great. Magistross did a great job on this!

    Yeah it works nice, but you have to use getToken in order to do two values in one object, and I'm not sure how much how much the text conversion would slow things down.

    In Cc you could pile on hundreds of values, but eventually the conversion would slow things down, but In C2, you cant do a whole lot of positions, because its slower, so the conversion may, or may not be an issue.