0 Favourites

Transition Animations

  • <img src="https://lh5.googleusercontent.com/-gJ_ayBAW6Nc/UJk9eBMnjoI/AAAAAAAABgM/UTaYMjxeZ78/s640/blogger-image-1729685813.jpg" border="0" />

    I was wanting to add some transitional animations to my character for things like him changing direction. The example above is when he's flying to the right and turns to the left, I want to trigger and animation. I have a number of situations like that in my game, but am not sure how to go about implementing it.

    Any help is greatly appreciated.

    Ben

  • There is an action for an animation called "is playing" that allows to you check if a specific animation is playing currently on a sprite.

    You need to set up several "what if" checks to determine when to play what animation.

    eg: on keyboard "left" pressed

    (sub event) if flying right animation is playing -> play "turn left" animation

    (else)

    play left flying animation

    move character to left etc....

    ...

    .

    This way any time your player is flying right and the left button is pressed, it plays a transition that turns him around. (only if he is currently flying right) otherwise, he will just go left.

    same goes for all other situations he might come across

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • That is awesome. Can't wait to try that out. Thank you so much for your help.

  • Thnks for response.. was searching for this one.

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