Today I wanted to learn about states. To do this, I made a dummy character and defined 4 states as alterable values:
1) Moving (built in 8 directional movement)
2) Climbing Stairs Movement (built in 8 directional movement, but slower speed)
3) Dashing (not built in yet)
4) Blocking (While B is pressed, character gets a static movement and switches back to movement 1, when B is not pressed anymore)
So far I am quite happy with what I got, but there is an issue:
When I start the frame, enter the staircase, block and stop blocking again, the character is still on the stairs, but he moves normally instead of staircase movement.
My counters indicate the correct state, but the movement does not reflect that.
I suppose it has something to do with my limiting conditions, but I can't figure it out.
I would appreciate it a lot, if one of you guys could take a look at my .mfa and tell me where exactly I messed up.
Thanks in advance!