Does anyone to know how to make a player scoped de@th count using a game overlay device

I’ve been trying to make a de@th count on my friends parkour map but I thought the counter looked very ugly. I tried switching it to game overlay but I got stumped about halfway through my attempt.

Lifecycle when player knocks out to a counter and brocasting a, set the counter to update a property, add a property device called “knockouts” or smth, set it to number, then in game overlay make a block when receiving on channel | "a", then in the block do

Set Text -> Get Property -> "knockouts"
3 Likes

@Boss_1s do I wire the lifecycle to the counter?

1 Like

Also sorry I didn’t specify but the mechanic is supposed to record how many times the player has d!ed and not how many k!lls they get. Does this measure k!lls or De@ths?

your choice, you could channel a for both the increment counter and the block

1 Like

LOL. I should have thought of this. It gets easier don’t worry.

2 Likes

Kills - If you want it to measure deaths, just change the lifecycle setting to When player knocked out

Changed the lifecycle however only the counter records de@ths while the overlay text only turns on after first de@th and remains at 0 for all after

set up a counter, a property, and a game overlay device you will probable want me to explain

1 Counter

  • Place a Counter device and set its scope to “Player”.
  • Set the counter to update a property, which we’ll name “De aths”.
  • Ensure the property is initialized to 0 and is scoped to “Player”.
  1. Set up the Lifecycle
  • Place a Lifecycle device and set its event to “Player Knockout”.
  • Wire the lifecycle to the Counter device’s trigger, so the counter increments when a player di e s.

3.Set up the Game Overlay

  • Place a Game Overlay device and set its type to “Text”.
  • Set the overlay’s scope to “Player”.
  • In the overlay’s “Blocks” section, create a block that, when receiving a message (e.g., “UpdateOverlay”), sets the text of the overlay to display the “De aths” property.

4.Connect the Trigger

  • Place a Trigger device and connect it to the lifecycle.
  • When the player is knocked out, the trigger will broadcast a message on a specific channel.
  • The game overlay should be set to show when receiving a message on that channel.
1 Like

So whatever the counter updates on, make the overlay block recieving on that too.

1 Like

How do I set it to display the De aths property

1 Like
  1. Create a De ath Property
  • Go to the “Properties” section in your Gimkit world.
  • Create a new property and name it “Dea ths” or similar.
  • Set the initial value to 0.
  • Make sure the property is scoped to the player.
  1. Increment the De ath Property:
  • Use the Player Knockout event in the Lifecycle Settings to trigger the increment.
  • Create a block that increments the “Dea ths” property by 1 when a player is knocked out.
  • Wire the Lifecycle event to this block.
  1. Display the De ath Count:
  • Use the Game Overlay device.
  • In the Overlay, use the “On Channel” block to display the value of the “Dea ths” property.
  • Connect the property to the text in the overlay.

Example Block Code:

Code

On Wire Pulse  Increment Property (De aths) by 1
1 Like

In number 2 what device do I make the block on

You dont need a block, just use a counter + wire - 45 mem (25 + wire 20) is better than 540 (20 trigger + 20 wire + 500 block)

@freedom Ok step 1 I followed exactly. Step 2 I wired the lifecycle to increment the counter, but I did not know what device to create the block on. Additionally I do not know if it is possible to connect a wire from a device to a block. On step 3 you did not say what channel the On Channel block should run when recieving on so I could not go any further.

sorrry for the hold up

Its ok

wait so tell me what exaclty os happing it step t2 for u or like send a pic?

Have you tested your theory?