Attack animations interrupted

0 favourites
  • 3 posts
From the Asset Store
3 pixel charaters with over 8 animations each + animations with a gun
  • So I'm making a fighting game, and I have it to where when the

    player attacks, the variable for which the attack is set doesn't

    set to off, until the animation is finished (i.e. On P

    Pressed set punch to 1, On Punch = 1 set animation to

    Punch, On animation "Punch" is finished, set variable

    Punch to 0). The problem is, when I press another

    attack button while the punch animation is playing, it is

    interrupted by which ever animation is pertaining to the

    button, then the punch animation will finish playing

    afterwards. My idea is to make it to where while the

    punch/various attack animation is playing (or while said

    variable is true) it cannot be interrupted by another

    attack/command. Thanks in advance.

    m.youtube.com/watch

  • Add a condition to button press event : punch = 0, that will stop you from punching until the variable resets. You created the variable but didn't use it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • lionz "Add a condition to button press event : punch = 0, that will stop you from punching until the variable resets. You created the variable but didn't use it."

    Hey, thank you sir. You were absolutely correct.

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