Page 1 of 1

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

Posted: Fri May 10, 2019 10:39 am
by SomeDumbOstrich
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?

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

Posted: Fri May 10, 2019 11:05 am
by SONTSE
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


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

Posted: Fri May 10, 2019 11:14 am
by SpicyMayo1429
There is also this thread where I asked a similar question, some of the responses here might help. viewtopic.php?f=8&t=50220