imagemap question

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
shiza
Regular
Posts: 29
Joined: Wed Jun 14, 2017 12:36 pm
Contact:

imagemap question

#1 Post by shiza »

So I read this cookbook on imagemaps. pretty straight forward you have a image and you have another layer to show some verification that the icon is over a hotspot.

What I'm wondering is if it's possible to omit the ground image and use the already existing background as the ground image and use a hover image that is made to highlight or enable the player to interact with a certain object in the background.

User avatar
vollschauer
Veteran
Posts: 231
Joined: Sun Oct 11, 2015 9:38 am
Github: vollschauer
Contact:

Re: imagemap question

#2 Post by vollschauer »

Or you don't use imagemaps and do something like this:

Code: Select all

add "background.png"

imagebutton xpos 100 ypos 100 focus_mask "object.png":
        idle Null(100, 100)
        hover "object.png"
        action NullAction()

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Sugar_and_rice