I got a little problem.
I tried to implement a life bar.
Everything works just fine, but if I put the whole events into a group, it stops working. The graphics animation does not change when the player leaves the layout. The rest of the code works, so after the 3rd time of leaving the layout, I get to the level selection screen.
Global variables at top:
rest of the code in a group:
How to fix this?