Can you make a counter a score for leaderboard

I am making a soccer gimkit game. And I want to keep score and how do I have the counter the score for the leader board. This game has 2 teams if that helps.

Make a number property, go into the property section of the counter and set the counter to that property, then set the score to that property.

2 Likes

thank you @WinterLover1533

Also don’t forget to make your property team-scoped!

2 Likes

@Here_to_help thank you for your help. (I am a fan)

1 Like

I’m pretty sure we ALL are a fan of HtH here :slight_smile:

But here are some pictures for referece @BeauHere (note that you’ll need to do this twice, once for each team. Also keep in mind that I’m only doing blue team, but you should name everything red team for team red)

Counter


Property

End of Game widget

1 Like

For clarification, you only need 1 property, “goals”, and that’s why it’s team-scoped. This allows you to use it as the map score, since you can only use 1 property for that and not compare two properties.
I’m not sure if that works with counter though, so just use a trigger and simple block code to add one to the “goals” property.

1 Like

There is a rly simple way.

Add two counters, one for each goal. Wire the goal to the counter, and have it set to when a player scores, it increments the counter by one.

1 Like

Does the property need to be linked to a counter (and the counter needs to be linked to the property)
I don’t really understand sorry.

Yes, under the “Property” tab of each counter, link the goals property. And again, make sure the property is team-scoped!

Thank you very much @Here_to_help and @Hdangerzones

1 Like