Ren'Py Animated icon when hovered + sound ?

UncleNanard

I am to music what Kanye West is to adult games.
Game Developer
Jul 1, 2017
1,644
1,617
Hello, it's me again :p

I have a little problem (i think it's the last :p) :

I managed to create my own menu by myself (I'm very proud even if it's not much)
I replaced the basic menu with this one, it is displayed when the player press right click or escape:
You don't have permission to view the spoiler content. Log in or register now.

I would like now that when they are in hover the icons are animated (I already have the frames, 70+ per icon), but I don't really find how to do it.

So to make it simple :
Image IDLE = fix
Animated when hovered + if possible a sound.

And the little bonus, I added the name under the icon myslef but it's not very good. If it is possible to add the name under the image I think it will be cleaner.

If someone know how to do it, thank you very much for your help.
 
Last edited:
  • Like
Reactions: Reifon

UncleNanard

I am to music what Kanye West is to adult games.
Game Developer
Jul 1, 2017
1,644
1,617
Hello, i've just find this thread :



I hope my answer is in it. If i have the answer i will put it her, maybe that can be usefull for someone !
 

UncleNanard

I am to music what Kanye West is to adult games.
Game Developer
Jul 1, 2017
1,644
1,617
OMG GUYS I M SO STUPID !

My code worked since the beggining...
When i created my own script for the anim i have save in the py extention... and not rpy... that's why that didn't work...
2 day of search on google for an extention :ROFLMAO:

if someone know how to do it :

Code:
imagebutton:
    idle "gui/custom_menu/start.png"
    hover "start_hover"
    action Return()
   
### anim for the hover action
image start_hover:

    "gui/custom_menu/home/home_frm1.png"
    pause 0.025
    "gui/custom_menu/home/home_frm2.png"
    pause 0.025
    "gui/custom_menu/home/home_frm3.png"
    pause 0.025
    ### add all you anim frames ###
    repeat
 
Last edited: