again on 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
User avatar
jack_norton
Lemma-Class Veteran
Posts: 4084
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

again on ATL

#1 Post by jack_norton »

I have the code:

Code: Select all

    show pg01 01:
        linear 2.0 xalign -2.0
        pause 2.0
    show pg01 02:
        xalign 2.0 yalign 0.5
        pause 2.0
        linear 5.0 xalign 0.5
but the image pg01 01 disappears instantly, unless I put a say text between the two "show". Why ? I don't understand, I even put pause statement... :oops:
follow me on Image Image Image
computer games

delta
Epitome of Generic
Posts: 525
Joined: Sat Dec 22, 2007 12:59 pm
Projects: yes
Contact:

Re: again on ATL

#2 Post by delta »

ATL blocks run asynchronously from the script and don't cause a display event, so your pause command is useless. You have to pause script execution with a top level "with Pause(2.0)" instead.
The rest is left as an exercise for the reader.

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4084
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

Re: again on ATL

#3 Post by jack_norton »

ahh yes! Got it now, thanks :)
follow me on Image Image Image
computer games

Post Reply

Who is online

Users browsing this forum: No registered users