Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
I need it to run in the background so I don't need to jump to update the date, month, and year and weekday and hope that I end up jumping back to where I left off.
The player needs to be able to stay up all night if they want to with sleep being an optional trigger for updating the date. Right now I'm using the code below at the end of day and trying it in screens.rpy works for exactly 1 day then it's suddenly August 33rd. Ideally I'd like to do the same for the weekday as well but my brain is fried on this one.
How does time advance in your game?
Does time advance by an hour for every turn? How to you advance a turn? Or do you want this to go in real time?
Or can the players do as much as they want until they click a "Next Day" button?
If it is Monday and they chose not to sleep...does it just stay Monday?
What do you mean by "run in the background?"
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
I semi hate to say this (seeing how much work you have obviously done already) ... It might be best to try Python datetime objects through Ren'Py output translation...
I'm not quite to the advancing of time yet but essentially the player clicks a button (like go outside to a store 30 minutes away) and the button will increase the minutes which in turn will increase hours, then days, then months, and years. I was trying to get the big stuff running first.
Different Actions or movement to different areas increase minutes and/or hours by different amounts.
When it hits midnight it should immediately switch over from Monday to Tuesday and so on for each new day.
I think I found a way to get it to work without any problems by having a label call that returns at the end back to where it was called from using the information from this- https://www.renpy.org/doc/html/label.html
It is working thus far.
Most people in my experience wouldn't know reason if it walked up and shook their hand. You can count Gul Dukat among them.