S
Silver_Mantis
Guest
Hello GM Community,
A game I'm currently working on has a minor bug that is puzzling me.
I have an educated guess on what the problem might be, but I'm having a hard time fixin' it.
Here's the deal, (Or what I think the problem is):
When my character is in the "Move" state and I attack, the attack sprite animates from the same frame number as my walk frame.
So if I'm walking along, and I attack on frame 2 of the walking animation, the attack animation continues from frame 2 instead of starting from 0.
Here is what the bug looks like:
Here is the full animation:
If I catch the walk animation on (what seems to be) frame 0 it plays all the way through even when I'm walking.
Here is my scr_Attack_State code:
And here is my obj_Player Animation End code:
Is there a way to force the animation to play from frame 0 every time it starts up?
Any help would be greatly appreciated. I've been trying to fix this for over an hour now.
A game I'm currently working on has a minor bug that is puzzling me.
I have an educated guess on what the problem might be, but I'm having a hard time fixin' it.
Here's the deal, (Or what I think the problem is):
When my character is in the "Move" state and I attack, the attack sprite animates from the same frame number as my walk frame.
So if I'm walking along, and I attack on frame 2 of the walking animation, the attack animation continues from frame 2 instead of starting from 0.
Here is what the bug looks like:
Here is the full animation:
If I catch the walk animation on (what seems to be) frame 0 it plays all the way through even when I'm walking.
Here is my scr_Attack_State code:
And here is my obj_Player Animation End code:
Is there a way to force the animation to play from frame 0 every time it starts up?
Any help would be greatly appreciated. I've been trying to fix this for over an hour now.