How do I play entire animation on click?

  • ok so heres my basic animations.

    Whenever I left click, the animation starts but wont continue unless i hold the button.

    with 1 left click how can i make the sprite play the entire animation?

    Basically like a punch

  • You have conditions that set the animation to 0 if the left mouse is NOT down

    That's why you have to hold the left button down to play the animation

    Also, I would recommend changing the Player's "Animations" variable to a string and just setting it to the name of the animation you want to play

    Like this:

    Player 8 Direction is moving > Set Animations to "Walk"

    SHift is down > Set Animations to "Run"

    Then you can set the animation to the variable with only 1 event

    Player set animation to Self.Animations

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thx for the reply! When I set it that way it usually doesnt work. other animations stop working.

  • You have conditions that set the animation to 0 if the left mouse is NOT down

    That's why you have to hold the left button down to play the animation

    Also, I would recommend changing the Player's "Animations" variable to a string and just setting it to the name of the animation you want to play

    Like this:

    Player 8 Direction is moving > Set Animations to "Walk"

    SHift is down > Set Animations to "Run"

    Then you can set the animation to the variable with only 1 event

    Player set animation to Self.Animations

    can u show me what u mean? plz

    dropbox.com/s/n5ptcemwgodb0f1/er.c3p

  • didnt work anyone can help me?

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