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