Page 1 of 1

Problem with imagemap

Posted: Sat Jun 01, 2019 7:58 pm
by Gianserpe
Hi everyone, I'm finding it difficult to figure out how to set the code in a mini-game I'm creating. The minigame is, in a room, take as many objects as possible in the max time; I am finding however many problems to set the code. Theoretically the operation is very simple, on a backdrop are loaded different images in png that, once clicked, disappear. The problem is that I can't understand if it is possible to do this with the imagemaps command, that is to load images in png on the ground of imagemaps so that when they are clicked they disappear. I hope you can help me, even just by giving me some advice. Thank you :)

Re: Problem with imagemap

Posted: Sun Jun 02, 2019 5:50 am
by Alex
It's better to use a number of imagebuttons - you could make a condition to show/hide them separately.
https://www.renpy.org/doc/html/screens.html

Also, check this - viewtopic.php?p=478861#p478861
(and that might be of some help - viewtopic.php?f=51&t=18047&p=235921#p235918)

Re: Problem with imagemap

Posted: Sun Jun 02, 2019 6:47 am
by Gianserpe
Thank you very much, it was just what I wanted to do, thanks :)