How do I get my animation to stop when not moving.

  • When using the ladder the animations play all weird. When moving down and not moving the animation does play but when moving up it doesn't play.

    I need it to not play when not moving and play when I'm moving up and down.

    Also bonus problem; Even thought I have every tick change player angle to platform angle, why does this happen?

    .capx for my file

    https://drive.google.com/file/d/0Bw7sth_-pQTXSGtUdGZiT0d2MGM/view?usp=sharing[/code:thb6bl3x]
    edit: i changed the link
  • Why is the animation not working when pushing up-arrow?

    • Because pushing the up arrow makes the player jump and when jumping you want the jump animation to play, so the program is told to play two animations at the same time, which is impossible..

    Why is the animation playing when not moving?

    • Because your event states to play the animation while overlapping and that condition is true..

    First thing you should probably do is remove the default controls from you behaviour and add your own in events..

    Also you seem to not understand the difference between triggered events and normal events..

    Adding a "system every tick" condition to a triggered event is useless..

    Your event 23 only changes the angle "on collision" so when no collision is registered the player angle will not change to platform angle..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Why is the animation not working when pushing up-arrow?

    - Because pushing the up arrow makes the player jump and when jumping you want the jump animation to play, so the program is told to play two animations at the same time, which is impossible..

    Why is the animation playing when not moving?

    - Because your event states to play the animation while overlapping and that condition is true..

    First thing you should probably do is remove the default controls from you behaviour and add your own in events..

    Also you seem to not understand the difference between triggered events and normal events..

    Adding a "system every tick" condition to a triggered event is useless..

    Your event 23 only changes the angle "on collision" so when no collision is registered the player angle will not change to platform angle..

    So I changed my code in the following way;

    • I added to my other animations to activate when I'm not using the ladder so now the animations don't overlap.
    • I changed the angle detection to "every tick" and "is overlapping solid at offset (0,5)"

    I will keep the default controls for now but if I run into problems I will re do them. Thank you so much for this reply. I learned a lot!

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