Character freezes after attacking

Get help using Construct 2

Post » Tue May 24, 2016 8:59 pm

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!
B
5
S
1
Posts: 15
Reputation: 341

Post » Tue May 24, 2016 9:29 pm

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!
B
5
S
1
Posts: 15
Reputation: 341


Return to How do I....?

Who is online

Users browsing this forum: ST314 and 17 guests