[SOLVED] animation and layers to the main menu
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.
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.
- SpicyMayo1429
- Regular
- Posts: 36
- Joined: Tue Mar 20, 2018 11:23 am
- Contact:
[SOLVED] animation and layers to the main menu
I've been working on customizing the main menu for a game I'm working on. I was wondering how to go about making it like Doki Doki Literature Club's menu where there's a moving background then something comes in from the side (and stays) and finally another image will appear on top of the moving bg. Like the image below...
Last edited by SpicyMayo1429 on Wed May 23, 2018 11:36 am, edited 1 time in total.
Re: animation and layers to the main menu
You can create animated images using Renpy's transform properties and the ATL:
https://www.renpy.org/doc/html/atl.html ... properties
https://www.renpy.org/doc/html/atl.html
Have a read, experiment with it and see if you can figure it out.
Then to apply it to the main menu, go into the screens.rpy and find the main_menu screen - you can add your animated images there.
https://www.renpy.org/doc/html/atl.html ... properties
https://www.renpy.org/doc/html/atl.html
Have a read, experiment with it and see if you can figure it out.
Then to apply it to the main menu, go into the screens.rpy and find the main_menu screen - you can add your animated images there.
- ComputerArt.Club
- Veteran
- Posts: 427
- Joined: Mon May 22, 2017 8:12 am
- Completed: Famous Fables, BoPoMoFo: Learn Chinese, Santa's workshop, Cat's Bath, Computer Art Club
- Location: Taiwan
- Contact:
Re: animation and layers to the main menu
In the screens section you are going to just add the image which will be animated and defined elsewhere.
find the screen for your main menu and add the background image. This is normally done in screens.rpy
probably:
You might decide to use imagemap or imagebutton instead of add for some of the code.
The next part is usually done in the scripts.rpy, but people often have separate files for transformations and images, depending on how big the project is. Renpy reads all the files and disregards the names, so you don't need to overthink it too much.
Define the images with the transformations that you are applying to them.
etc.
Then define the transformations
You will need to use similar transforms for alpha to fade in etc.
I was planning on doing something similar with regards the moving background, but decided against it for my current project.
You can also unpack the files in Doki Doki to see how they did it, though I vaguely remember that they might have a warning about doing that somewhere, like they do not give consent for that.
It is not particularly simple, it will probably take quite a bit of work.
find the screen for your main menu and add the background image. This is normally done in screens.rpy
probably:
Code: Select all
screen main_menu():
add "background"
add "menu_right"
add "sprite"
The next part is usually done in the scripts.rpy, but people often have separate files for transformations and images, depending on how big the project is. Renpy reads all the files and disregards the names, so you don't need to overthink it too much.
Define the images with the transformations that you are applying to them.
Code: Select all
image menu_bg:
"gui/menuname.png"
menutransform1
Then define the transformations
Code: Select all
transform menutransform1:
xoffset 0 yoffset 0
linear 3.0 xoffset -100 yoffset -100
repeat
I was planning on doing something similar with regards the moving background, but decided against it for my current project.
You can also unpack the files in Doki Doki to see how they did it, though I vaguely remember that they might have a warning about doing that somewhere, like they do not give consent for that.
It is not particularly simple, it will probably take quite a bit of work.
Facebook:
Renpy Creators and Enthusiasts Facebook Group
My latest game:
Famous Fables: Read, Learn and Play - Android App for teaching children to read
Creative Commons stuff:
Shape transitions,
100+ 360° photos of Japan,
- SpicyMayo1429
- Regular
- Posts: 36
- Joined: Tue Mar 20, 2018 11:23 am
- Contact:
Re: [SOLVED] animation and layers to the main menu
Thanks for the suggestions guys. I'll totally read into things and experiment with stuff!
Who is online
Users browsing this forum: Google [Bot], Majestic-12 [Bot]