Imagebutton do stuff when hovered

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
Doeny
Regular
Posts: 145
Joined: Wed Sep 07, 2022 8:28 pm
Contact:

Imagebutton do stuff when hovered

#1 Post by Doeny »

Hi, is there a way to make imagebutton execute an action while hovered? I looked into some tutorials but I'm trying to avoid using hotspots, since I want my imagebutton to appear randomly in one out of few points on the screen.

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2402
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Imagebutton do stuff when hovered

#2 Post by Ocelot »

https://www.renpy.org/doc/html/screens.html#imagebutton
hovered
An action to run when the button gains focus.
< < insert Rick Cook quote here > >

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Majestic-12 [Bot]