Code: Select all
screen thedeck1():
imagemap:
idle "deckzonecard"
hover "deckzonecard"
hotspot (307, 475, 455, 690) action Show("character")
screen character():
imagemap:
idle "blackdeck"
hover "blackdeck"
if iknowzeina == True:
add "zeinadeckb" align (0.02,0.05)
textbutton "Zeina" action Show("zeinacardselect"):
xalign 0.03
yalign 0.01
screen zeinacardselect():
add "zeinabase"
imagebutton auto "icon/drag_%s.png" action
Hey, guys.
I'm looking to add an image to the hotspot.
But not a simple image.
On my last screen you can see that the code is not finished.
I want this code to allow the player to click on a button and that button to display an image on the hotspot area.
In the second screen, *screen characters* I will create many more characters.
*if iknowzeina == True* the same but with others characters than zeina.
In the last screen *screen zeinacardselected*
I want to create a code that allows me to give a value to the image.
My idea is that every time the player comes on this screen he can change the image that will appear on the hotspot area.
If the player goes on zeina's screen then he can put zeina's image on the hotspot area if he goes on another character then he can put the image of this other character.
But I can't do better than putting an image, I can't give it an editable value that can be changed by the player.
thanks for help!