need help with this simple problem

0 favourites
  • 8 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • hello, can anyone help me with this. I try to do the platform animation with attack, run and default(standing)

    the problem is, whenever i land on the floor, I can move the character but cannot play the run animation. the attack animation is ok but the problem is just that, the movement.

    I try to do this btw:

    keyboard > on z released : sprite > set animation to "attack" (play from the beginning)

    Sprite > platform on landed :

    SUB EVENT Sprite > Platform is moving : Sprite > set animation to "run" (play from the beinning)

    SUB EVENT Sprite > X Platform is moving : Sprite > set animation to "Default" (play from the beinning)

    Just when I try to move my sprite. the animation won't trigger.

    i'm quite beginner btw, I tried to learn from tutorial, but i prefer asking someone, since it is direct and simple. please excuse me for this.

  • I think you're looking for 'Is on floor' instead of 'On landed'. 'On landed' is when the player first hits the ground, so you can't run at the same time as this.

  • Platform > On Landed is a trigger condition, meaning its events only happen on the one frame that it is true. At the moment your code thinks you only want to see the run animation at the exact brief instant you land on the floor.

  • I try to that but instead the attack animation wont trigger by released the z button, but as for running, yes it trigger.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Because the two scenarios when you are releasing the Z button are already covered by animations : moving and not moving. You'll have to put a timer in or something when releasing the Z button to allow the attack animation to finish before playing the other anims.

  • well, i get the idea, in this case i try to include to

    GROUP

    Sprite > platform on floor :

    SUB EVENT Sprite > Platform is moving : Sprite > set animation to "run" (play from the beinning)

    SUB EVENT Sprite > X Platform is moving : Sprite > set animation to "Default" (play from the beinning)

    when platform speed is not equal to 0 : set group activated

    when platform speed is equal to 0 : set group deactivated.

    somehow it work.

    but, is this ok? and I would like to know if there is other method for this. If so, i want some example of it.

  • oh great! nice!

    I think that's all for me. thank you to all you.. really..

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