I have some tooltips and other buttons in my game that change variables when hovered/ unhovered. However, sometimes (seemingly random) they get stuck on hovered, even though they were unhovered. It seems like a Ren'Py bug, but I wanted to check here and see if anyone else has experienced it?
It's a difficult bug to replicate as it happens maybe 1/4 times. There seems to be no pattern as to why it does it, unless the mouse is moved fast. Even so, this isn't always the cause.
Here's an example, though there's nothing particularly special going on:
Code: Select all
imagebutton:
idle theme_image("drawing collection off")
hover theme_image("drawing collection on")
hovered SetVariable("_hovering_on_button", True)
unhovered SetVariable("_hovering_on_button", False)
action SetVariable("_hovering_on_button", False), Show("drawing_denied")