Animated Imagemap Main Menu

A place for Ren'Py tutorials and reusable Ren'Py code.
Forum rules
Do not post questions here!

This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Post Reply
Message
Author
User avatar
chungy
Regular
Posts: 26
Joined: Sun Sep 23, 2018 9:07 pm
Contact:

Animated Imagemap Main Menu

#1 Post by chungy »

Hello! Big thanks to lezalith for helping me out!! <3

Heres how to make an animated main menu!
End result will be this but with a button;
ezimba17256616324800.gif
in the screens.rpy, scroll down to the entire mm section (somewhere in the 300s.) replace the entire mm with this;

Code: Select all

screen main_menu():
    tag menu
    style_prefix "main_menu"
    imagemap:
        idle "test2"
        hover "test3"
        ground "test1"       
        hotspot (10, 15, 20, 25) action [Start('start') ] 
        #add more buttons as you need, change hotspot so it's custom.
you'll need to define test 1,2, and 3, so above it define it (edit to fit your animation), heres how i did mine;

Code: Select all

image test1:
    "a2.png"
    pause 0.1
    "a1.png"
    pause 0.1
    "a3.png"
    pause 0.1
    "a4.png"
    pause 0.1
    "a5.png"
    pause 0.1
    "a3.png"
    pause 0.1
    repeat
image test2:
    "a7.png"
    pause 0.1
    "a6.png"
    pause 0.1
    "a8.png"
    pause 0.1
    "a9.png"
    pause 0.1
    "a10.png"
    pause 0.1
    "a8.png"
    pause 0.1
image test3:
    "a12.png"
    pause 0.1
    "a11.png"
    pause 0.1
    "a13.png"
    pause 0.1
    "a15.png"
    pause 0.1
    "a16.png"
    pause 0.1
    "a14.png"
    pause 0.1    
    repeat  
and you're done! heres a screenshot of mine;
uhh.png
https://gutrotz.itch.io/
Check out my itch.io!

viewtopic.php?f=62&t=52002&p=496592#p496592
Sprite commissions closed!

User avatar
anh0814
Newbie
Posts: 21
Joined: Wed Jul 08, 2020 4:37 am
Tumblr: https://anh0814.tumblr.com/
Contact:

Re: Animated Imagemap Main Menu

#2 Post by anh0814 »

This looks amazing! Thank you. ❤️

Post Reply

Who is online

Users browsing this forum: No registered users