sorry in advance, I first postet it in Creator Discussion until I realised, here is the place for such questions...
I'm working on my project for a while already and now, since I got most the artwork done, I wanted to work on the script.
Most things are fine thanks to the wiki.
BUT I just can't really get my image map to work.
Code: Select all
label menu_room_player:
$ result = renpy.imagemap("Schule.png", "Hover.png", [
(43, 42, 181, 94, "bed"),
(347, 41, 183, 93, "door"),
(586, 42, 179, 87, "chest"),
(300, 239, 211, 102, "mirror"),
(43, 441, 181, 93, "schrank"),
(309, 439, 188, 90, "kuchen"),
(571, 439, 178, 89, "sofa"),
], focus="imagemap")
if result == "bed":
me "Time to sleep!"
elif result == "door":
me "Time to head out!"
elif result == "chest":
me "What do I got...!"
elif result == "mirror":
me "So how am I doing?"
elif result == "schrank":
me "What do I got...!"
elif result == "kuchen":
me "What do I got...!"
elif result == "sofa":
me "What do I got...!"Hover.png and Schule.png
At least on my computer is the result always the same.
Only the block on the upper left changes and can be clicked. And also only half of the block.
Did I do something wrong anywhere?
Because I really need the image map.
Thanks in advance!