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.
-
SLim_Games
- Newbie
- Posts: 23
- Joined: Tue Mar 20, 2018 11:37 am
- itch: slim-games
-
Contact:
#1
Post
by SLim_Games » Thu Apr 26, 2018 6:16 am
Hi,
I was wondering if it is possible to make an imagemap show a big image when you hover over it while it's in a vbox.
Code: Select all
vbox:
spacing 5
imagemap style "chat_left":
ground "test.png"
hover "testH.png"
hotspot(0, 0, 171, 200):
action Show("testBig")
Right now I just show another screen when you click on the image, but can you make it that it shows the big picture when you hover over it. so it's outside the vbox?
-
DannX
- Regular
- Posts: 99
- Joined: Mon Mar 12, 2018 11:15 am
-
Contact:
#2
Post
by DannX » Thu Apr 26, 2018 8:44 am
You can try giving it a
hovered button property, that runs the action when you hover on the imagemap.
Code: Select all
vbox:
spacing 5
imagemap style "chat_left":
ground "test.png"
hover "testH.png"
hotspot(0, 0, 171, 200):
hovered Show("testBig")
unhovered Hide("testBig")
Users browsing this forum: Bing [Bot], Google [Bot], _ticlock_