Hello.
Is it possible to add moderation to limit playtime? I intend to develop a game for educational purposes, so I must ensure that students play in a healthy manner while benefiting from the game's positive aspects. I am still relatively new to this, and I have never learned to code before.
Thank you!
There is a "Control Timer Setting" on the first page of the Event Commands window. It's the last item under Game Progression. This lets you set a countdown in minutes and seconds that appears in the top right corner of the screen.
In Conditional Branch, also on the first page being the top item under Flow Control, you can set an event to do some action when the timer is at 0.
For example, you could create a Common Event set to Parallel (so it checks the time every frame) then add a conditional. This conditional could say that if the timer reads 0 minutes and 0 seconds, the game should pull up a textbox saying "That's Enough Playing for Now!" then it should boot the player back to the title screen.
Good luck with your project! Making a video game for your students seems like an awesome teaching idea.
It should be pretty simple to make a common event that runs in parallel and increments a variable every second. Then when it gets high enough to whatever your threshold is, it pops up a message to take a break.
Then you'd use caethyril's AutoSwitchVars to reset that variable to 0 when they load a save game.