Health Example

14207
14208
25
26

Arrow keys to move. The spikes will cause the player to lose health, restarting the game when it reaches 0.

The player's health is stored in a Number block. Using a Collision trigger, the health is decremented when touching a Spike object. A Filter is used to check for a health value of 0 to restart the game.

Editor