Page 1 of 1

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

Posted: Sat Mar 17, 2012 6:28 am
by blakjak
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 !