ATL "contains" and "choice" statements working together ?

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
User avatar
blakjak
Veteran
Posts: 224
Joined: Fri Dec 21, 2007 2:36 pm
Location: France
Contact:

ATL "contains" and "choice" statements working together ?

#1 Post by blakjak » Sat Mar 17, 2012 6:28 am

Hi,

I'd like to know if it is possible to give a "choice" statement to an image that already uses the "contains" statement.
I managed to give a "choice" statement to an animated image, but I just can't figure why it doesn't work when the image already has a "contains" statement ?
I've tried several approaches, one of them using the "block" statement, but all in all, Renpy ignores the "choice" statement, whether it's written where images are declared or when the image is "shown"in the script.

That's the image with the "contains" statement :

Code: Select all

image test double:
    contains:
        "auto_0000.png" with Dissolve(.1)
        pause .04
        "auto_0001.png" with Dissolve(.1)
        pause .04
        "auto_0002.png" with Dissolve(.1)
        pause .04
        "auto_0003.png" with Dissolve(.1)
        pause .04
        "auto_0004.png" with Dissolve(.1)
        pause .04
        "auto_0005.png" with Dissolve(.1)
        pause .04
        "auto_0006.png" with Dissolve(.1)
        pause .04
        "auto_0007.png" with Dissolve(.1)
        pause .04
        "auto_0008.png" with Dissolve(.1)
        pause .04
        "auto_0009.png" with Dissolve(.1)
        pause .04
        repeat

    contains:
        "logo2.png"
        xalign 0.5
        linear 1.0 xalign 0.6
        repeat
And it works fine by itself.
But when I show it with the "choice" statement :

Code: Select all

label start:
    
    show test double:
        choice:
            xalign 0
            linear 0.1 xalign 0.1
            linear 0.1 xalign 0.0
        choice:
            yalign 0
            linear 0.1 yalign 0.1
            linear 0.1 yalign 0.0
            
        pause 0.01
        repeat
The "choice" statement lines are not taken into account.
Any help ?
Thanks !

Post Reply

Who is online

Users browsing this forum: Baidu [Spider], IaMe, Majestic-12 [Bot]