The end game device is for, well, when it’s over, but I want the players position to be shown in game.
Hey! What are you using to track score again?
Thanks for pinging me.
I am using a property. (Called level for what level the player is on)
(No problem!)
You’re gonna have to brute-force this one by making/simulating a new leaderboard. Or, you could allow the leaderboard to be visible in-game? I don’t know if that’s what you want though.
It’s already visible in-game, but I want the player to know without checking what place they’re on.
So you have to compare the level of each player to each others and rank it using text.
How would I compare those properties if they all use the same one?
And make the scope equal to player!
Yes, I know that, but they all use the same property and you can’t really compare two(taht are the same) properties correctly.
No properties, variables. Make a new variable whenever the triggering player triggers a trigger which is triggered by a relay and compare them ti each other.
Ok let me try that, thanks!
There are 2 ways of comparing player scoped properties that I know of: subtracting items and proxy properties. I’ll reply with the proxy property way later.
Can you give me more details on the wires and stuff?
Here is the gist of this:
We will construct the leaderboard from the bottom up. We need a Num Players property. So we start with a global number property named “Current Lowest” (default 9999999999999999999999999999999999999) and another one named “Current Place”. Also make a player-scoped true/false property default false, named “Has Gone”.
So a relay broadcasts to each player and checks if their score is less than “Current Lowest”. If it is, it checks if “Has Gone” is false. If it is, it sets “Current Lowest” to their score, sets “Has Gone” to true, and it sets “Num Tie” to 1, more on that later. If the 2 scores are the same, it sets a global number property with a default of 1 that is named “Num Tie” to itself plus one.
Once everyone has gone (new relay channel), it sets the player’s place on the leaderboard, if the player’s score is equal to “Current Score”. More later.
you could probably use this block:
have a game overlay (type button) run a wire pulse block in a popup when the button is pressed,
then go into its blocks, (on wire pulse block) and use the “set text” block and connect it to the block in the picture. Make the popup open when receiving on a channel from when the button of the game overlay is pressed. This way, players can view their score anytime.
(me just realizing you said their place and not their score )
So, how do you want the leaderboard to be displayed?
Through a game overlay.
Did that make sense? I didn’t include specifics since I just wanted to get the idea through.
I am testing it out right now.
What is “Num Tie”?