Page 1 of 1

[SOLVED] Animated image acting weirdly when hovered

Posted: Tue Nov 14, 2023 7:13 pm
by Gigan
Hello everybody !

I apologize for this noob question, as I see where the problem is but I have no idea how to fix it, but I have a few animated imagebuttons in my game, some used as unclickable background fluff, some clickable and leading to labels.

Problem is, they all act weird when you hover the mouse on them. Like the animation was resetting ?

Image

Here's the code used :

Code: Select all

screen forest_mermen_lair():
        imagebutton:
            focus_mask True
            xpos 200
            ypos 80
            idle "animated_fishes"
            action NullAction()

...

image animated_fishes:
    animation
    "images/imagebuttons/fishes_1.png"
    0.4
    "images/imagebuttons/fishes_2.png"
    0.4
    "images/imagebuttons/fishes_3.png"
    0.4
    "images/imagebuttons/fishes_4.png"
    0.4
    repeat
I suppose I have to put something on "hover" but I tried some stuff and it doesn't work. So if you have any idea. :/

Re: Animated image acting weirdly when hovered

Posted: Tue Nov 14, 2023 11:05 pm
by PyTom
I'm unable to repeat this in the nightly version of Ren'Py. What version are you using?

Re: Animated image acting weirdly when hovered

Posted: Wed Nov 15, 2023 3:24 pm
by Gigan
Sorry for the late reply, was at work !
I'm using renpy 7.4.11.2266

Re: Animated image acting weirdly when hovered

Posted: Thu Nov 16, 2023 11:48 pm
by PyTom
Can you try a recent version of Ren'Py?

Re: Animated image acting weirdly when hovered

Posted: Fri Nov 17, 2023 8:29 am
by Gigan
Just upgraded. It works perfectly now. Sorry for the stupid question (and tx for your help !). :?