I would like to implement a map at certain points in my game. Now I figured out how to do this with the helpful code from other users, but what I need now is:
When you go to the map, you have the option to go to places where you hover over them and there's buttons. I want every time you return from the place you were on for the place to not be accessible again, until no places are accessible anymore and it triggers the next event which will take you somewhere else, for example to your room for the night.
I know how to remove choices with a menu choice, but not how to do it with buttons. Any assistance?
Here is my code in one script file(most of it taken directly from other users that shared it):
Code: Select all
label call_mapUI:
call screen MapUI
screen MapUI:
add "map/bg map.jpg"
imagebutton:
xpos 618
ypos 570
idle "map/house1_idle.png"
hover "map/house1_hover.png"
action Jump("house1_pressed")
imagebutton:
xpos 596
ypos 165
idle "map/house2_idle.png"
hover "map/house2_hover.png"
action Jump("house2_pressed")
Code: Select all
label map:
jump call_mapUI
label house1_pressed:
scene bg classroom
"House 1 was pressed!"
jump call_mapUI
label house2_pressed:
"House 2 was pressed!"
jump call_mapUI
Thank you very much for your time.