I have a function:
Code: Select all
init python:
def hideScreens():
renpy.hide_screen("homeroomOptions")
renpy.hide_screen("hallwayOneOptions")
renpy.hide_screen("englishClassroomOptions")
renpy.hide_screen("map")
Code: Select all
hotspot (588, 343, 207, 186) action [increaseTime, hideScreens, Hide("map"), Jump("englishClassroom")]
Code: Select all
label endGame:
######This is what I tried. Didn't work. ###################
$ hideScreens
######This is what I tried. Didn't work. ###################
######This is what I had to resort to. ####################
$ renpy.hide_screen("homeroomOptions")
$ renpy.hide_screen("hallwayOneOptions")
$ renpy.hide_screen("englishClassroomOptions")
$ renpy.hide_screen("map")
######This is what I had to resort to. ####################
if(day > totalDays):
p "Game Over"
return
else:
jump homeroom