I'm making a map that has a (Lua) gimmick that, every few seconds, it pushes the player towards a direction. It uses some of the player momentum so you can have some control before being pushed.
I'd like to force the player in a state to prevent them from moving while the gimmick is running, but every time a player has their state changed, a single keypress or tic later they are in the walking animation.
A workaround I used in the meanwhile is to save the player momentum in dummy variables, use the player pain function, disable the control for some seconds, and set the player momentum to the saved variables + player pushing values.
How do I make a player display a different sprite/state, for example, making the player use the falling/spinning (jump) sprites?
I'd like to force the player in a state to prevent them from moving while the gimmick is running, but every time a player has their state changed, a single keypress or tic later they are in the walking animation.
A workaround I used in the meanwhile is to save the player momentum in dummy variables, use the player pain function, disable the control for some seconds, and set the player momentum to the saved variables + player pushing values.
How do I make a player display a different sprite/state, for example, making the player use the falling/spinning (jump) sprites?