Enjl wrote: ↑Sun Nov 21, 2021 5:07 pm
1) 0x13E is just the field player.deathTimer - easier to remember
pgewiki moment
Enjl wrote: ↑Sun Nov 21, 2021 5:07 pm
2) Do you think it would be good here to use onPostPlayerHarm to handle the kill?
Code: Select all
function onPostPlayerHarm(harmedPlayer)
harmedPlayer:kill()
end
to clarify for OP that there's a small difference in functionality:
- enjl's code will kill the player if they take damage in any way
- the code i originally posted will also kill the player if their powerup gets filtered, and won't work in two player mode