[SOLVED] Animated image acting weirdly when hovered

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Gigan
Regular
Posts: 28
Joined: Mon Jan 10, 2022 7:02 pm
Contact:

[SOLVED] Animated image acting weirdly when hovered

#1 Post 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. :/
Last edited by Gigan on Fri Nov 17, 2023 8:30 am, edited 1 time in total.

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Animated image acting weirdly when hovered

#2 Post by PyTom »

I'm unable to repeat this in the nightly version of Ren'Py. What version are you using?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Gigan
Regular
Posts: 28
Joined: Mon Jan 10, 2022 7:02 pm
Contact:

Re: Animated image acting weirdly when hovered

#3 Post by Gigan »

Sorry for the late reply, was at work !
I'm using renpy 7.4.11.2266

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Animated image acting weirdly when hovered

#4 Post by PyTom »

Can you try a recent version of Ren'Py?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Gigan
Regular
Posts: 28
Joined: Mon Jan 10, 2022 7:02 pm
Contact:

Re: Animated image acting weirdly when hovered

#5 Post by Gigan »

Just upgraded. It works perfectly now. Sorry for the stupid question (and tx for your help !). :?

Post Reply

Who is online

Users browsing this forum: Adabelitoo, Bing [Bot], Ocelot