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.
I have an imagebutton, and when I hover over it, I want the player to see two smaller imagebuttons appear on top. The player should be able to click on the smaller buttons while the mouse is still hovered over the larger imagebutton. When the mouse moves away from the larger imagebutton, the smaller imagebuttons should be hidden.
Though you will have to resolve the 'loses focus' issue pointed out by Alex (maybe by toggling a variable with a mousearea or button: container in the small button screen that mimics the main button action... you should also note:
A button without action or sensitive will by default be insensitive and thus not respond to events, so either 'action NullAction()' or 'sensitive True' in the main button...
I would use a variable toggle myself... (pseudo code to give idea - if they show and hide on each repeat hover, then expand to suit)
Thanks Remix, that was the issue. Setting an action makes the hover events work. I also added a mousearea to resolve the focus issue, which works great!