C
Capptianm
Guest
In my game, I've decided to handle walk animations like this: the animation is started by pressing the movement buttons, but the animation is ended by this piece of code in an animation end event so that the animation stops at the end of it:
the problem is that it stops the animation at the end of the animation no matter if a key is pressed or not. can someone help me out?
Code:
if !(keyboard_check(ord("W")))
{
image_speed = 0
}
else if !(keyboard_check(ord("A")))
{
image_speed = 0
}
else if !(keyboard_check(ord("S")))
{
image_speed = 0
}
else if !(keyboard_check(ord("D")))
{
image_speed = 0
}