Hello! I'm looking for a way to respawn the player in Big state (player.powerup == 2) after dying. I managed to make the player be big when spawning in a level using this:
Code: Select all
function onStart()
if player.powerup < 2 then
player.powerup = 2
end
end
The problem is that it will always make you become big when starting a level, even if you were small before, while I wanted to do that only when the player respawns after a death. Just like how it is in SM3DL and SM3DW. Can anyone help me? Thanks in advance.