show a screen when hover an area

Forum organization and occasional community-building.
Forum rules
Questions about Ren'Py should go in the Ren'Py Questions and Announcements forum.
Post Reply
Message
Author
User avatar
cl0ud
Newbie
Posts: 5
Joined: Mon Aug 07, 2023 3:43 pm
Projects: Ghosts of Fujoshima
Location: France
Contact:

show a screen when hover an area

#1 Post by cl0ud »

Hello everyone ! I need help:
I have a screen showing a "fear" bar, it is displayed on the far right of the screen. However, it can be cumbersome. What I would like to do is for the screen to show when the mouse is to the right of the game screen!

And also, I would like the bar to appear every time it is updated, then disappear 3 seconds later, all with "dissolve" in transition. Here is the bar code:

Code: Select all

#health bars     

default fear = 0

screen fear_bar:
    zorder 1000
    vbox:
        xalign 1.0 yalign 0.0
        bar value AnimatedValue(fear, range=100.0):
            xalign 1.0 yalign 0.0
            xmaximum 30
            ymaximum 400
            left_bar Frame("gui/bar/fear_empty.png")
            right_bar Frame("gui/bar/fear_full.png")
            thumb None
            bar_vertical True
thanks :D

Post Reply

Who is online

Users browsing this forum: No registered users