I have been hitting my head against a wall on a glitch I have with forwarding the game time within my VN. The following code does fine in terms of advancing the time, however when called from a different label, I am unable to get it to go back to the original label.
The top section is a screen overlay button to activate the advance_time label. I will also need to call the advance_time label within the coding itself to forward time after an event. What I am seeking the code to do, is to simply run the math and not change the position in the code.
Note: I tried several of the suggestions in https://f95zone.to/threads/renpy-day-time.18367/ but alas was not able to resolve.
Edit: I have done a little more testing and the advance_time label works fine when used as a call after an event. However during the game navigation screens, where I am using an imagemap, if I press the forward time button it goes to the next line within the active label. Thinking of games I have played, I'm not sure whether this is fixable.
Code:
screen advance_time:
zorder 200
vbox xalign 0.9 yalign 0.05:
imagebutton idle "advtime.png" action Call("advance_time")
label advance_time:
if dtime == 4:
$ dtime = 0
$ day += 1
else:
$ dtime += 1
Note: I tried several of the suggestions in https://f95zone.to/threads/renpy-day-time.18367/ but alas was not able to resolve.
Edit: I have done a little more testing and the advance_time label works fine when used as a call after an event. However during the game navigation screens, where I am using an imagemap, if I press the forward time button it goes to the next line within the active label. Thinking of games I have played, I'm not sure whether this is fixable.
Last edited: