how do i animate the main menu's background, like what DDLC did?

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
SomeDumbOstrich
Newbie
Posts: 3
Joined: Sat Mar 23, 2019 5:50 pm
Projects: 独裁者とのデート! (Dating with Dictators!)
Tumblr: somedumbostrich
Deviantart: somedumbostrich
Github: SomeDumbOstrich
Soundcloud: somedumbostrich
itch: ostrichnerd
Contact:

how do i animate the main menu's background, like what DDLC did?

#1 Post by SomeDumbOstrich » Fri May 10, 2019 10:39 am

i want to make a basic background animation for the main menu of my game. my original thought was to make literally 100 separate images, each one pixel different, but there's obviously a way better, more efficient way to do this, right?

User avatar
SONTSE
Regular
Posts: 95
Joined: Sun Nov 24, 2013 10:49 pm
Completed: 8 VN's so far
Contact:

Re: how do i animate the main menu's background, like what DDLC did?

#2 Post by SONTSE » Fri May 10, 2019 11:05 am

You can make animated displayable using "Animation and Transformation Language" https://www.renpy.org/doc/html/atl.html
And then place it into main_menu screen, which is usually located in screens.rpy. Search "screen main_menu"
Screens are operated with Screens Language https://www.renpy.org/doc/html/screens.html

example of making simple animation and placing into a screen

Code: Select all

image rotating_sky: #defined animated image with prefered animation
    'sky'
    rotate 0
    linear 5 rotate 360
    repeat

screen main_menu():
    tag menu
    style_prefix "main_menu"
    add rotating_sky # Placed an animated image as background
    use navigation

Look! It's moving. It's alive. It's alive... IT'S ALIVE! Oh, in the name of God! Now I know what it feels like to be God!(@Henry_Frankenstein. Sums up my coding style)

User avatar
SpicyMayo1429
Regular
Posts: 36
Joined: Tue Mar 20, 2018 11:23 am
Contact:

Re: how do i animate the main menu's background, like what DDLC did?

#3 Post by SpicyMayo1429 » Fri May 10, 2019 11:14 am

There is also this thread where I asked a similar question, some of the responses here might help. viewtopic.php?f=8&t=50220

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]