I had previously used an action of Jump("somelocation"), as the action for an image-button. However, to reduce repeating duplicate code, I created a python function instead.
Originally, within the function, I had a renpy.jump("somelocation"), which just caused errors that could not be correctly located. (The errors were all pointing to some unrelated "menu", in another file, and something about not using close transient...)
I removed the jump from the function, and returned it to the image-button, after the call to the function. (Instead of it going to unique locations. They all now return to one universal location, with that menu.) The menu is just a stopping point, where you select some action to do at the location you are at.
So, the issue is this... The function is simply as follows...
Code: Select all
init python:
def fMoveTo(loc):
global YOU
if YOU.L.find("home") != -1 and loc.find("home") == -1:
YOU.L = loc
fTimeChange(15)
else:
YOU.L = loc
fTimeChange(0)
The code for the time-progression works fine. Nothing has changed there. Same with the jump-location, which holds the menu, asking what you want to do next.
However, now, with that function added, the game is in hyper-mouse mode. Every click on the screen seems to trigger 1-5 clicks, noted by the time progression being 15 minutes to 1-hour and 15-min.
The other buggy part, is it keeps returning to a section that was never clicked. (There is a second page with another button, that it keeps going to. Though it is never clicked or even "shown" on the screen.)
SideNavB "town clothingstore", (which is on a screen that isn't loaded), is what every button randomly, about 95% of the time, loads, when clicking on any other image-button, while on the SideNavA screen.
Code: Select all
screen sideNavA:
zorder 10
fixed:
imagebutton auto "btn/loc home %s.jpg" xpos 1564 ypos 210 action [Hide("sideNavA"), Show("sideNavB"), SetVariable("groupLocB", 7)]
imagebutton auto "btn/loc yourbedroom %s.jpg" xpos 1564 ypos 318 action [SetVariable("groupLocA", 0), SelectedIf(groupLocA == 0), SetVariable("groupLocB", 7), fMoveTo("home yourbedroom"), Jump("TimeLoop")]
imagebutton auto "btn/loc sparebedroom %s.jpg" xpos 1564 ypos 426 action [SetVariable("groupLocA", 1), SelectedIf(groupLocA == 1), SetVariable("groupLocB", 7), fMoveTo("home sparebedroom"), Jump("TimeLoop")]
imagebutton auto "btn/loc masterbedroom %s.jpg" xpos 1564 ypos 534 action [SetVariable("groupLocA", 2), SelectedIf(groupLocA == 2), SetVariable("groupLocB", 7), fMoveTo("home masterbedroom"), Jump("TimeLoop")]
imagebutton auto "btn/loc bathroom %s.jpg" xpos 1564 ypos 642 action [SetVariable("groupLocA", 3), SelectedIf(groupLocA == 3), SetVariable("groupLocB", 7), fMoveTo("home bathroom"), Jump("TimeLoop")]
imagebutton auto "btn/loc lounge %s.jpg" xpos 1564 ypos 750 action [SetVariable("groupLocA", 4), SelectedIf(groupLocA == 4), SetVariable("groupLocB", 7), fMoveTo("home lounge"), Jump("TimeLoop")]
imagebutton auto "btn/loc terrace %s.jpg" xpos 1564 ypos 858 action [SetVariable("groupLocA", 5), SelectedIf(groupLocA == 5), SetVariable("groupLocB", 7), fMoveTo("home terrace"), Jump("TimeLoop")]
imagebutton auto "btn/loc poolyard %s.jpg" xpos 1564 ypos 966 action [SetVariable("groupLocA", 6), SelectedIf(groupLocA == 6), SetVariable("groupLocB", 7), fMoveTo("home poolyard"), Jump("TimeLoop")]
screen sideNavB:
zorder 10
fixed:
imagebutton auto "btn/loc town %s.jpg" xpos 1564 ypos 210 action [Hide("sideNavB"), Show("sideNavA")]
imagebutton auto "btn/loc clothingstore %s.jpg" xpos 1564 ypos 318 action [SetVariable("groupLocB", 0), SelectedIf(groupLocB == 0), SetVariable("groupLocA", 7), fMoveTo("town clothingstore"), Jump("TimeLoop")]
add "btn/loc work.jpg" xpos 1564 ypos 426
add "btn/loc away.jpg" xpos 1564 ypos 534
Thus, it is completely bugging-out.