Trigger animation - Something is wrong

0 favourites
  • 5 posts
From the Asset Store
Be quick and choose whether the shown equation is right or wrong.
  • Hey guys, I'm testing my animations and I'm having some problems after the jumping and falling triggers are activated.

    The animations of each runs correctly, and I've also set a trigger to play the "stand/idle" animation when the player touches the floor. But if the "d" or the "a" keys are still pressed (move right and left) the "run" animation won't start unless I release one of them and then press again.

    I'm pretty sure that there's a workaround, and that it's probably obvious, but I just can't figure it out :)

    here is the capx

    thanks a lot guys!!

  • I think this fixes it...

    just a few minor changes.

    dl.dropbox.com/u/41931267/for%20murilokleine.capx

  • I think this fixes it...

    just a few minor changes.

    http://dl.dropbox.com/u/41931267/for%20murilokleine.capx

    Thanks a lot man! It's perfect! I noticed you changed the "set mirroed" and "set not mirroed" to system events instead of keeping it based on which key is pressed, is there any particular reasons to do this? I really want to learn to make games in C2, so I want to be able to identify the difference between this "minor" changes.

    Thanks a lot once again!! :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey, no problem.

    Those system expressions compare vectorX of the platform behavior. I changed it so that any time the player is moving left, it will point left, and any time the player is moving right, it will point to the right.

    I just realized that this was not necessary, I was using the arrow keys by mistake. But it will still benefit you to leave them in as you should support multiple controls, and you will not have to duplicate events.

    Also, it is very good to know how vectorX and vectorY work.

  • Hey, no problem.

    Those system expressions compare vectorX of the platform behavior. I changed it so that any time the player is moving left, it will point left, and any time the player is moving right, it will point to the right.

    I just realized that this was not necessary, I was using the arrow keys by mistake. But it will still benefit you to leave them in as you should support multiple controls, and you will not have to duplicate events.

    Also, it is very good to know how vectorX and vectorY work.

    That will be usefull for sure!

    Thank you for the help <img src="smileys/smiley1.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)