Adding games to my app and creating a leaderboard

Hello everyone I am doing some testing on Bubble to see if what I want to build is possible. As my first MVP I would lie to build something very simple. I want to embed games that are multiplayer and then track the amount of wins people have in order to create a leader board that updates in real time.

Is this at all possible, and if so… can I get any help or resources in how to actually do it?

Thanks a lot, love the platform so far even though haven’t completely grasped it yet :slight_smile:

1 Like

Yeah absolutely.

You can have on the “User” Datatype a category of “NumberOfWins”

Then when a user wins, you can edit it to be current user’s number of wins + 1.

For the leaderboard you can have a repeating group that does a search for users, and ranks them by “NumberOfWins”.

Ezpz Totally doable with bubble :slight_smile:

1 Like

Thanks a lot for your answer, question, in this scenario, would I have to manually update the “number of wins” each time?
If so that wouldn’t be scalable. I would Ideally need something that updates by itself… is this even possible?

You wouldn’t have to manually update it this task. Create a workflow like @jobs stated and you’re set.

1 Like

Nice, so even if it’s just an embedded game my app will be able to track who wins and who lost in the match?
Sorry for the noob questions, I am quite inexperienced but quite eager as well hehe

No. It can’t autotrack an embeded game.
You’d need the game to trigger a workflow.
Or for it to be possible to check players stats using an API

1 Like

yes that was what I thought, thanks! I’m going to have to re-think my app :slight_smile:

How about tracking how many times players played the game? I’m thinking you could track when they click on it, and measure the time they spend playing? would this be feasible?