- Aug 13, 2019
- 1,081
- 4,430
So I am looking for some advice or help in understanding how I can create an image map over an image map.
What I want is to be able to display an image with some characters displayed. then when the user clicks on a character image, it displays another image that shows the character bio. then the next click brings them back to the previous scereen.
The current code I have to show an image like that is listed below. I have it for a galaxy map I want to use in my game. It works great, but I am at a loss on how to make an image that you click on to get another image displayed.
screen MapButton():
imagebutton:
xalign 0.98
yalign 0.03
idle "images/mapbutton.png"
action Show("GalaxyMap"), Hide("MapButton")
screen GalaxyMap():
imagebutton:
idle "images/galaxymap.jpg"
action Hide("GalaxyMap"), Show("MapButton")
any help is greatly apriciated. Thanks so much.
What I want is to be able to display an image with some characters displayed. then when the user clicks on a character image, it displays another image that shows the character bio. then the next click brings them back to the previous scereen.
The current code I have to show an image like that is listed below. I have it for a galaxy map I want to use in my game. It works great, but I am at a loss on how to make an image that you click on to get another image displayed.
screen MapButton():
imagebutton:
xalign 0.98
yalign 0.03
idle "images/mapbutton.png"
action Show("GalaxyMap"), Hide("MapButton")
screen GalaxyMap():
imagebutton:
idle "images/galaxymap.jpg"
action Hide("GalaxyMap"), Show("MapButton")
any help is greatly apriciated. Thanks so much.