Nimtrix's Forum Posts

  • And what do you mean by breakpoints?

  • Both the Mouse and Touch objects allow you to pass a layer parameter for the X and Y expressions. This is very useful if you scale or rotate layers.

    e.g. Mouse.X("Layer 1") returns the mouse's X position on Layer 1, taking in to account its parallax, scale and angle. If you use only Mouse.X, it does not take in to account parallax, scale or angle, so the result can be wrong.

    In your case it would be Touch.X("Layer X") obviously, or Touch.X(0) for layer with index 0, but this should be what you're looking for.

  • Depends, if it's a similar question you can just post within the same topic. There's an IRC chat room, you can connect with an IRC client, or through Mibbit with the "Chat!" link in the menu. The "Chat Beta" is part of the forum and doesn't really work, like you saw.

  • Sure, just use "Sprite.Animationframe+1" when setting the frame.

    I just realized that's what you really wanted, sorry for the misunderstanding! <img src="smileys/smiley17.gif" border="0" align="middle" />

    Edit: Oh, and if you want to do either +1 or -1 randomly, you can use the choose expression "Sprite.Animationframe+int(choose(-1, 1))"

  • Release 100 is likely to take more work than usual, and will most likely arrive some time in August.

    That's all we know, probably not early august though, it's a big release, I'd say at least a few weeks.

  • Put a "Compare frame" event as a sub-event of your "On key pressed" event, set the frame to 1 if the frame is currently 0. Then add an "Else" event (press x) and set the frame to 0 in the in that event.

  • Just thought I'd drop this here in case someone's interested!

    http://birdeatsworm.com/q-a-with-ashley-gullen-of-scirra/

    Q & A with Ashley Gullen of Scirra

    We recently published a post on Construct 2, and in it included what it is, what you can do with it and why it?s fantastic if you want to make games in a much easier way than learning shed loads of programming. Bird eats worm wanted to take a closer look into Construct 2 by asking Ashley Gullen, one of the Directors of Scirra, how Construct 2 came to be, the lessons they learned on the way, and what the future holds.

  • To get the current loop's index, input "loopindex". (witout quotes)

  • To snap the angle to 45 degree increments, you can do:

    round(Sprite.a/45)*45

    So in your case, you'll need to put it inside the cosine and sine functions.

  • Put the variable checks as sub-events and use the "Else" condition, like I did in the example. (select first condition and press X)

  • silvereon:

    That action expects an angle and not a position, so you need to use the angle expression:

    angle(YourSprite.X, YourSprite.Y, Mouse.X, Mouse.Y)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • silvereon:

    When you turn off the "Set angle" property, you control the bullet with the "Set bullet angle of motion" action. To play different animations based on angle you need to use a condition like "System: Compare Two Values" and compare "Sprite.Bullet.AngleOfMotion" with whatever you had in mind.

  • Like this?

    TokenLoopSpawning.capx (r99)

  • 404 error, link is dead. Do not use repeat to, it sets the animation to the frame you input when the animation is finished. In your case, the frame would jump to 5 every time the animation runs, and thus, no looping.

    Edit: Great <img src="smileys/smiley36.gif" border="0" align="middle" />

  • Working fine here, re-upload your capx?

    Nono, it should be 1, 0 on every single one.

    Edit: Or, well, the first one doesn't matter, but the second one must be 0 if you want it to loop correctly.