How do I make a score system with an overlay?

I’m making a flappy bird game, and I want to keep track of how many times I’ve gone through the opening using a overlay.

do you want the score to update when the players passes through the pillars?

Yes

Use zones…
Whenever a person passes through a zone, increment a counter to keep their score…
You can deactivate zones, you know!

1 Like

Thanks, I’ll try that.

alright, so add triggers between the pillars and connect them to a counter and make it where when triggered increase the counter through channels or wires, and make that counter update a property (add a property device and name the score you want), and then on game settings under score make the leaderboard use property and select the name of the property you selected.

1 Like

Ok, thanks

if this works better or you want this idea mark that the solution.

Ooooops.
You wanted to use an overlay…
Sorry.

It’s okay, thanks for the advice.

1 Like

okay

if you are having trouble with doing that idea let me know I’m free rn lol

you could use a property system with the game overlay device to display the property, this would make a pretty neat overall that stays on your screen, then just make the zones or triggers update that property by 1 (using blocks)

you would also need a block to change the game overlay’s display to that property

Thanks for all the help.

1 Like

You are welcome! Here is some pictures for you
game overlay settings


game overlay block
image

property settings

zone settings (without anything to deactivate it)

trigger settings

trigger block
image

final result

please note that this is without any other code, just purely for the overlay system.
this is also for single player
hope this helps!

1 Like

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.