Animated Menu Background via ATL

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
Elbaer
Newbie
Posts: 2
Joined: Tue Jul 15, 2014 11:02 am
Contact:

Animated Menu Background via ATL

#1 Post by Elbaer »

Hi!
I'm trying to have multiple images as the background in the menu which change with a simple fade, I've found 2 topics on this problem
(http://lemmasoft.renai.us/forums/viewto ... =8&t=10508 and http://lemmasoft.renai.us/forums/viewto ... f=8&t=9136), but I still can't get it to work.

So this is my code:

options.rpy:

Code: Select all

init -1 python hide:

    image slideshow:
        "images/Menu4.PNG" with dissolve
        pause 3.0
        "images/Menu5.PNG" with dissolve
        pause 3.0
        "images/Menu6.PNG" with dissolve
        pause 3.0
        repeat

    [...]
    mm_root = slideshow
But it tells me:
"invalid syntax image slideshow->:"



However the code works when I use it in the script.rpy file:

Code: Select all

image slideshow:
    "images/Menu4.PNG" with dissolve
    pause 3.0
    "images/Menu5.PNG" with dissolve
    pause 3.0
    "images/Menu4.PNG" with dissolve
    pause 3.0
    repeat

label x:

    show slideshow
So I guess it's because when I try to use it in the menu it's defined within the init-block but I can't place it before the init-block because then it says "slideshow is not defined".

I basically only know java and I have very little knowledge of both python and renpy, so could you guys help me out?

Thanks!

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Animated Menu Background via ATL

#2 Post by Alex »


Elbaer
Newbie
Posts: 2
Joined: Tue Jul 15, 2014 11:02 am
Contact:

Re: Animated Menu Background via ATL

#3 Post by Elbaer »

Thanks, works like a charm!

Post Reply

Who is online

Users browsing this forum: No registered users