Lately, I’ve been trying to make those sequence of events with character sprites I’ve seen other games do.
My current problem is that I’m trying to change Hammon’s sprite animation, but it’s stuck on the first frame. It will change the animation to the one I set, but it won’t play the whole event.
I’ve looked up other threads on here that have a similar problem, but they don’t match what I’m trying to do so I’m still at a bit of a loss.
When animation is stuck on 1st frame means you allowed to play more than one animation at a time
Idea in making game is NOT to just let something happen
But also prevent it from happening
I gonna give you example and you should deduce solution yourself
Not because i don’t want to tell you what to do
But because YOU should understand what is going on in your events and not others
Or else you will be back here as soon as you add another animation
Now look
Imagine you have idle animation for player
So you make event like
Player is on the floor
Player is not moving
Change animation to idle
Now you make walk animation
Player is not the floor
Player is moving
Change animation to walk
And that will work perfectly fine
BUT you just added
Player is on the flor
Z key is pressed
Change animation to attack
Now tell me if you don’t move and press Z which animation should play
Attack or idle?
What if you move and press Z?
Now you see how easy is to create conflict?
Solution would be to add to 1st two events
Animation of player IS NOT equal to Attack
And that would give priority for attack animation to play over idle and walk animations