Oxygen bar not starting up when player respawns

https://flowlab.io/game/edit/3001751

I have code in the “Oxygen bar” sprite and the “Player” sprite (Collisions and levels bundle) to restart the oxygen loss process when the player respawns, but the messages don’t seem to be sending properly. What should I do?

I’d like to point out you only need 2 animations, the decreasing animation, and the uh oh animation, you could once > start animation > when done play “uh oh” when “uh oh” done kill player.

1 Like

It looks like the bar only starts after you go through all the popups, you need to add the message to the check if the player has already seen the popups.

image

I see you tried to do this with a mailbox, this will not work because the message needs to be sent after the level has fully restarted. Messages cannot send across levels, and restarting the current level counts as moving to another level.

image

1 Like