I'd like the players to be able to choose a skin color at the beginning of the game through an imagemap, thus showing a different CG depending on what they picked.
The problem is that, no matter what I pick, I always end up with the last skin color I coded (which is black).
Here's my code:
The imagemap before the start label:
Code: Select all
screen skin:
imagemap:
ground "skin 1.png"
hover "skin 2.png"
hotspot (28, 136, 293, 259) action Return (white)
hotspot (372, 136, 293, 259) action Return (caramel)
hotspot (708, 136, 293, 259) action Return (black)
Code: Select all
label start:
$ white = False
$ caramel = False
$ black = False
$ renpy.transition(dissolve)
call screen skin
$ result = _return
if result == "white":
$ white = True
elif result == "caramel":
$ caramel = True
else:
$ black = True
The moment the proper illustration should appear instead of giving me the black option everytime:
Code: Select all
if white == True:
show cg1
with dissolve
character "..."
elif caramel == True:
show cg2
with dissolve
character "..."
else:
show cg3
with dissolve
character "..."