Forcing the player object into an animation

Status
Not open for further replies.

Goldenhog

Wandering Protagonist
So... yeah, the title. I'm trying to make the player to look at certain angle at all times and be in the running animation as long as he is on the ground. I already did the former, but I'm having trouble forcing the running animation. I'm using player.panim = PA_RUN with ThinkFrame, but it only makes the player slide around in the first walking frame (the running animation only shows up when landing from a jump at a high enough speed, but it still gets replaced by the lone walking sprite if speed is lost).
 
"panim" is just supposed to describe what TYPE of animation the player has, not control it. You want to set the player's state to "(S_PLAY_RUN1 + (leveltime%4))" each tic.
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top