introduction
Have you ever wanted a sanity meter that increases when your close to other players in your horror game, to make your game more scarier and difficult the less sanity you have? well now you can!
WARNING 
this guide assumes you have this guide completed, and in your map.
this guide REQUIRES this system to function. (the materials don’t include the materials used for this system, because you should already have this system made.)
Materials
1 trigger (there are 2 triggers used in this guide, one is from the guide in the warning.)
1 counter.
1 game overlay
1 property
The Guide
Alright, so first make a counter, that has the scope of player
and make it update a property called “Sanity”, and its Default Value is 100
Tip:
preferably, you should rename the counter (yes you can infact do that, by clicking on the name of the device in the devices settings) to “Sanity CNTER” (CNTER for Counter, avoiding confusion with the “Sanity” Property)
Next make a Property called “Sanity” which the type is set to Number
and the scope to player
, next make a trigger with these settings
[1]
now add some block code set up like this
[2]
Next, in the trigger that recieves on “Function” [3] go to its block code and add this bit of block code
(the if Distance < 20 is what you need to add, along with the 100 < sanity after that)
Next, go back to our counter, and add the channels of
Increment Counter: “Sanity Increase”
Decrement Counter: “Sanity Decrease”
Reset Counter: “Reset Sanity”
now go to the “Sanity” Property, and add this
now make a game overlay that has the content scope of
player
, then add block code that activates when recieving on “Update Sanity” that looks like thisand now you are finished, you can decide what happens when the sanity reaches 0 for yourself (I’m not going to tell you everything)
How does this work
What this does, is that if you are within 20 tiles of the closest Player, then your sanity goes up, otherwise it decreases every second.
Ending Polls
- Bad
- ok
- Good
- AMAZING!!!
- 1/10
- 2/10
- 3/10
- 4/10
- 5/10
- 6/10
- 7/10
- 8/10
- 9/10
- 10/10