[4.5.9] If I'm moving as I die, the game resets

offparkway

Active member
Working in the brawler module. I noticed that sometimes when I lose all health in a fight, the game ignores any lives I have left and restarts the game (which is supposed to happen when all lives are gone).

** I should clarify that I'm using a death animation for my player, which is called in the hurt player script. **

If I'm standing still when I get killed, the death animation plays and I lose one life as intended. Excellent. But if I'm MOVING around when I get killed, the game resets as though I lost all my lives in one swoop.

Basically, everything works just fine as long as I don't die while in motion. Any ideas?
 
Last edited:

offparkway

Active member
Made some progress with this... now the game doesn't do the hard reset. But I can't for the life of me get my inputs to be ignored during my Death action step (06). My player will die and show the animation, but if I press any direction on the d-pad, the animation cuts short and I start walking. So I basically can never die, as long as I keep moving.

Here's an example of one of my Move scripts:
up.JPG
 

Jonny

Well-known member
All I can suggest is maybe going at it from a different angle by ignoring physics when in #$06 action step in doHandlePhysics.asm
Or, do you have some sort of ChangeActionToMove input script? Did you try putting the check there too?
 
Top Bottom