How to make a Sanity Meter in GKC! (?/10 Difficulty/Difficulty undecided)

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: WARNING :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

Screenshot 2024-12-10 3.27.26 PM
(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 this

and 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

How was this guide?
  • Bad
  • ok
  • Good
  • AMAZING!!!
0 voters
How Difficult was this guide
  • 1/10
  • 2/10
  • 3/10
  • 4/10
  • 5/10
  • 6/10
  • 7/10
  • 8/10
  • 9/10
  • 10/10
0 voters

  1. Note: the “Game Start Relay” channel, is from a relay, set up in the guide from the warning ↩︎

  2. again, this block code uses properties from the guide in the warning ↩︎

  3. from the linked guide ↩︎

10 Likes

interesting way of doing a sanity meter I’ll admit (I could’ve sworn I did a sanity meter too)

3 Likes

Nice Guide! I like the idea of building a horror map using the sanity meter. (Obviously rated E)

1 Like

some info I’d like to add

you should make the Distance < 20 to be a Distance ≤ 20, it makes it actually raise your sanity even at 20 tiles away, like it should.


2nd, this can be used in both, platformer and top-down, it works the exact same.

Then add to the guide…

No.
I don’t like redoing info already present, because no one is going to continuously check the same guide over and over when they already did it once. 2nd, the system working no matter the map style is pretty obvious, so I’m not adding that to the guide.
please don’t tell me what to do, I really hate serverly dislike when people do that. I’m a free thinking person, so when people tell me what to do it makes me upset.

3 Likes

Bump!
(I had a very nice birthday yesterday, thanks to everyone who wished me a happy birthday!)

3 Likes