0 Favourites

Character Movement (Do it right)

  • Hi there,

    I have tested out a lot of different solutions for my Character-Movements. But i could't find the right way. The Basics are simple - but when i have more animations that my character can do, so i can't find a good working way.

    Have anyone of you a little *.capx for me?

    That will be great!

    Thanks!

    KMag

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • You don't say what kind of game you are making, so I don't know if this will help, but here is a simple example I made to change the animations of butterfly sprite that has an 8-direction behavior.

    When the butterfly sprite isn't moving its animation is set to an animation called idle. When the sprite is moving the animation played depends on how fast the butterfly is moving. If moving relatively slow the animation played is one called fly. If going relatively fast the animation played is one called flyfast.

    You can do something similar with platform behaviors, too. You can change the animation when the player jumps, is falling, is going left or right, etc. Examine the events for a behavior to see the places where it may be appropriate to change the animation. Of course you can always change an animation based on your own custom criteria.

    ButterflyFly.capx

  • You could also set the Animation speed to a factor of the Movement speed ..

    This way the animation speed is in sync with the movement

    Eg:

    every tick ...set animation speed to current movement speed +/- (any value you like) or divide the movement speed by a percentage...

    makes very smooth looking animations

    of course you may want to limit or cap the animation speed to a certain value

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
233 22,269
TiAm's avatar
TiAm
Unread hot topic
99 10,155
karshinkoff's avatar
karshinkoff
Unread hot topic
0 Favourites
Path Movement Behavior
98 52,480
R0J0hound's avatar
R0J0hound