OtherChen
The other one
I've noticed that I can directly set the player's mobj state in Lua, and animated states work just fine. For instance,
correctly sends the player into their rolling animation, even if I remove or change some of the frames in the WAD.
I want to make a character crouch, and possibly crawl, by pressing SPIN while not running. I can't find a way to use S_PLAY_* states to do that.
Are there any other spare states I can use, or is there another way to at least get crouching to work? As of now, the wiki doesn't seem to have the latest info on this new animated sprites thing.
Code:
p.mo.state = S_PLAY_ROLL
I want to make a character crouch, and possibly crawl, by pressing SPIN while not running. I can't find a way to use S_PLAY_* states to do that.
- S_PLAY_FIRE seems to animate the sprite properly, but prevents the player from changing direction, and the crouching frame lingers for a while.
- S_PLAY_GLIDE, S_PLAY_SPINDASH, and a few others are looping animations, which cause the player to vigorously T-bag until their state changes.
- S_PLAY_LAND (à la Knuckles and Fang) doesn't exist... Is there another name for this state?
- My character uses CA2_MELEE while running, so those states are out.
Are there any other spare states I can use, or is there another way to at least get crouching to work? As of now, the wiki doesn't seem to have the latest info on this new animated sprites thing.
Last edited: