Every 5 seconds help for game

Hello,

I’m planning to create a game using Bubble.io where players earn 1 game point per second. I’ve tried using the “Every 5 seconds” workflow, but it seems to consume too many WUs.

Could you advise on how to add 1 point to the existing game points each second in a more cost-effective way?

Thank you!

You can have the user’s last time they got points.

And then when you want them to get the points they can be calculated by doing the current time - the last time.

You can display the current date - last time: displayed as seconds to get the points displayed to the user.

3 Likes

Thanks, but im not sure if this is going to help with my plan the main thing is for me to add 1 point to the DB each second

Running WF every second is resource-intensive, just do what @jobs suggested. It’s the same concept from what you’re trying to achieve.

1 Like

Yeah, and you can still display to the user it increasing every second, so hopefully it will achieve the use case you want. (Without updating the database every X seconds.)

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.