Skip to main content

How to make a player invincible?

1

First Step

  1. Tap on the object to which you want to add a behavior
  2. With the object selected, tap on the “Details” button to the left of your screen.

  1. In the Details panel, tap “Add Behavior”.
2

Second Step

Decide what will trigger the behavior. This could be an action like a collision, an interaction, or the game starting. Select a “Trigger” box and drag it into the editor.
3

Third Step

Navigate to the “Game Actions” section, and select the ‘Set Maximum Lives’ and ‘Set Lives’ blocks. For example, you might set ‘Set Maximum Lives’ to 9999 and ‘Set Lives’ also to 9999. In that way, your player will have several lives in the game. The same can be done with Health in case you don’t want your player to get killed, simply use the blocks ‘Set Maximum Health’ and ‘Set Health’ instead.
Behavior BlockHow it looks in-game
4

Fourth Step

Exit the Behavior Editor, playtest and ensure it works as expected!
I