How would you write the following using the new coding rules?
I'll have several image maps. Originally, I wasn't going to use hover, etc. as I wanted the player to search and find what to do. I do like the example given, for when I do a preference image map, but it doesn't work for me here.
Thanks!
Code: Select all
label xr11xr6:
$ result = renpy.imagemap("xr11xr6.png", "selectme.png", [
(590, 200, 640, 250, "c11c1")
(609, 351, 659, 401, "c11c2")
(655, 199, 705, 249, "c11c3")
(600, 276, 788, 326, "right")
(368, 417, 435, 586, "down")
])
if result == "c11c1":
show c11c1.png
if result == "c11c2":
show c11c2.png
if result == "c11c3":
show c11c3.png
if result == "right":
jump xr21xr4
if result == "down":
jump xr13xr2