- Visual Portion
First you can go into map options and set health to invisible and make it the max amount.
Then you will get out a lifecycle and leave it at game start but when the event occurs transmit on the channel Start. Then you can take out a property.
You can name it anything but for this instance ill name it Health.
These are the settings
Then you can take out a gameplay overlay and set to Top Left to take position of the Health and go to channels and make it show on the channel D.I.E.D and Hide the overlay on the channel Lose 1.
Now go into the Block code of the Gameplay overlay and make it receive on the channel start. Then set the block code to this
you can use the red heart emoji to represent the Health. Now the Visual Portion is done.
2. functional portion.
If you want a laser to damage the Health, first you will first connect a wire from the laser to a trigger
The settings being… Player Hit by laser - Trigger
Then you will go to Block code and put this in
Now to make you respawn when your health reach’s zero. You will grab anther trigger and a wire repeater.
You will set the wire repeaters settings to one second and wire the wire repeater to the trigger and the trigger to the wire repeater with the triggers settings to trigger. then you will set the triggers code to this
Then if you want the hearts to appear less every time you lose some health you can do this. First grab anther trigger and do the same system with the wire repeater and the trigger and you will set this triggers code to this.
Now you will do the same process with the wire repeaters and triggers and here is the code for the 8 triggers after this one.
Now for the Gameplay overlay version of this part. These will show the channel they are connected to and the code for it. Here it is
Overlay 2
overlay 3
overlay 4
overlay 5
overlay 6
overlay 7
overlay 8
overlay nine
And thats the final step.
What difficulty would you rate this
- 1/10
- 2/10
- 3/10
- 4/10
- 5/10
- 6/10
- 7/10
- 8/10
- 9/10
- 10/10