Code: Select all
screen test():
add "places/Porch_idle.png"
imagebutton:
idle "places/Porch_idle.png"
hover "places/Porch_hover.png
action SetVariable ("location", "hallway"), Return(None)
Code: Select all
screen test():
add "places/Porch_idle.png"
imagebutton:
idle "places/Porch_idle.png"
hover "places/Porch_hover.png
action SetVariable ("location", "hallway"), Return(None)
Well, yes. If you didn't change your source image that how it should be. First you move cursor over idle image. As you explicitely told that this whole area is your button, if reacts. Now it is hovered, so image changes. As you explicitely told that everything non-transparent is a button, and your cursor is over transparent part of the image, it consider cursor to not be on button anymore. So it changes to idle image. Back to step 1.
Code: Select all
screen home_livingroom:
imagemap:
if time_of_day in ('MORNING', 'AFTERNOON'):
ground "scene_home_livingroom_day_g"
hover "scene_home_livingroom_h"
alpha False
Users browsing this forum: No registered users