Wanted to make a racing game in gimkit but unsure on how to get the rank the players when they finish? Well this is the guide for you! This guide will show you how to rank players from how quickly they get to the end of a race.
Devices Needed:
1x Laser
1x Counter
1x Property
2+ Text (Depends on the number of players)
Directions:
First we’ll make the tripwire that will be the finish line for the race. I used a laser and recommend using a laser as they take up less memory, and work perfectly for this.
Make sure Damage Dealt is at 0 (otherwise it will damage players), and Laser Scope is set to Player. And make When player hit, transmit on to send on channel RaceFinished, and Deactivate when Receiving on to RaceFinished. This will make it so the finish line is deactivated for the player when they cross it. Lastly, you can make the laser inivisible if you wish by setting all of the Show ____ options to No, and making the Laser Color black… The settings should look like this:
Next, place down a property. Name it RacingRank, make the Property Type a number property, and make the Scope player.
Alright, now place down a counter. Make it Not Visible In-Game, and make it Update Property RacingRank.
Wire the laser to the counter, Player hit by Laser → Increment Counter.
And that’s all you need for actually giving each player a rank! Surprisingly simple, but this will increment the counter, and update the RacingRank property. Because the counter scope is set to global, but the Property’s scope is set to Player, it will keep increasing the rank the more players cross the finish, but give each player their own rank.
Now, we’ll make the display of rankings. Place down some text. The only setting you should have to change is probably the text, so it doesn’t say “Text Here” before the player ranks. Just make it say "First: " or something like that. Next, create a block On Wire Pulse. Make it look like this:
This will set the text to the player’s name who got first in the race. Now, this does only apply to one player, the player who got first. Copy this text for each rank, only changing the ‘1’ and ‘first’. For example, second and third would look like this:
Wire the laser to each text, Player Hit by Laser → Wire Pulse. Place the texts in a row, and on a board that all players will see.
Overall, it should look like this:
And that is it for giving players racing ranks! I hope you found this guide helpful, a would always be appreciated. Have fun!