Page 1 of 1

Hovering/ Unhovering not registering properly

Posted: Mon Nov 08, 2021 10:29 am
by Kinmoku
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:

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")
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.

Re: Hovering/ Unhovering not registering properly

Posted: Mon Nov 08, 2021 11:16 am
by PyTom
What version of Ren'Py is this with? I've made a number of fixes in this area, but it's hard to tell for sure.

Re: Hovering/ Unhovering not registering properly

Posted: Mon Nov 08, 2021 11:40 am
by Kinmoku
PyTom wrote:
Mon Nov 08, 2021 11:16 am
What version of Ren'Py is this with? I've made a number of fixes in this area, but it's hard to tell for sure.
I'm on 7.4.10.2178, but I had it with the previous versions I was using as well :(

Re: Hovering/ Unhovering not registering properly

Posted: Mon Nov 08, 2021 11:07 pm
by PyTom
Can you put together a small unpacked demo that shows the problem, in 7.4.11 prerelease. I'll look into that and figure out what's going on.