Separate Running Animation

This forum is currently in read-only mode.
From the Asset Store
Ninja char for your game! Make your own Shinobi game with this art.
  • In my game, I'd like for a longer, more extended version of my character's walking animation for whenever the player decides they want to run. There are two extra sprites to add to the walking animation for it to be a full "Run", so I decided to copy the "walking" sprites and paste them in a new "Running" animation, and added the two running sprites as well.

    The way it's working at the moment is that walking is just the arrow keys, while running requires you to hold down a key. I've got the speed increase working fine, but whenever I set it up for the animation to change to "Running", in game, my character freezes on whatever sprite it was on in the animation before holding down the run button. To fix this, I tried setting a frame for my running animation, but the results were the same.

    Any ideas on what I can do for a smooth transition into my running animation?

  • Post the cap please, it's should be easier then.

  • Sounds like your animations are conflicting..I think..kind of confused..You have 2 separate animations for walking and running, right?

    What if you make a variable called running, and when it's 0 set the animation to walking, and if it's 1 set the animation to running? You could also store the current walking frame in a variable, then set the running frame to that and resume to have the running animation pick up where the walking one left off.

    Or yes, just post a .cap ^^;

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • D'oh! <img src="smileys/smiley36.gif" border="0" align="middle" />

    Alright, here's the cap:

    While I'm at it (And to avoid making too many threads in a row), do you guys have any advice on how to use collision masks? Is there any way I can make on mask for all animations, for instance? I feel like I don't know much about how to use them in Construct.


    Is that solved the problem? (If so, look at the animation sheet)

    I don't know much about the collission masks, sorry.


    Is that solved the problem? (If so, look at the animation sheet)

    I don't know much about the collission masks, sorry.

    Yes, it worked perfectly, thanks! <img src="smileys/smiley1.gif" border="0" align="middle" />

    And I think I see what you did too. You combined "is walking" with "special is down" into one event, correct?


    I've found out that I can use containers to match up animated sprites with the collision mask... now if only I could figure out how the collision mask works.

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