Hovering/ Unhovering not registering properly
Posted: Mon Nov 08, 2021 10:29 am
Hi all,
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:
Even when the button is clicked, the variable is changed to False, but I have instances of _hovering_on_button = True after I have unhovered and clicked. I'm really stuck as to what to do!
If I re-hover and unhover the said button, it sorts itself out, but not all players will do that and will find it frustrating at the frequency it happens.
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")