Character freezes after attacking

  • Hi,

    https://www.dropbox.com/s/4abm8vswatwz1ke/testing.capx?dl=0

    or if the above link doesn't work,

    http://www.mediafire.com/download/c2g56p4ipr5cm32/testing.capx

    There's my current project.

    Z - JUMP

    X - ATTACK

    D - DASH

    To replicate this bug, hold D to dash until it completely stops on its own, then try attacking with X. The character freezes! Now, if you look under the player's mechanics in the code, "start ignoring input" is the obvious culprit. But, I have it set so when the attacking animation is finished, the player should regain control. However, the problem is, if you complete a full dash, that animation won't play at all and the player will just be stuck there until they dash again.

    NOTE: My idea is to have attack animations able to be cancelled by dashing and nothing else. Otherwise, I want the player to be locked into their attack animation until it's finished. What am I doing wrong here? Thanks in advance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Figured it out. The problem was I needed another condition for when the character's idle animations play after stopping a dash that says attacking is false. While I'm here though, I have another problem! If you hold the dash button while you're in the air, it executes automatically when you land on the ground as long as it's held. I want it to be so that you have to push the button after landing to initiate the dash. Thanks in advance!

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