[SOLVED] Preventing transform from waiting for others

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
chocojax
Miko-Class Veteran
Posts: 705
Joined: Sun Oct 25, 2009 11:27 am
Projects: Umbra, Familiarity, Maleficent Justice
Tumblr: chocojax
Location: California
Contact:

[SOLVED] Preventing transform from waiting for others

#1 Post by chocojax »

I've been looking around for a bit, but haven't found a solution yet. :[

Here's my code:

Code: Select all

transform mm_randcloud:
    function random_pos_x # positions cloud at random on x-axis
    block:
        yalign 0.5
        linear 20.0 xalign -1.0
        xalign 0.5
        repeat
...
screen blah:
    add "cloud1" at mm_randcloud
    add "cloud2" at mm_randcloud
    add "cloud3" at mm_randcloud
    add "cloud4" at mm_randcloud
It's obviously waiting for the very last cloud to reach -1.0 before repeating itself, which creates a really weird image where the clouds are all there, and then the screen is completely void of clouds. Any help would be appreciated!

**Edit: I was derping kinda badly. Forgot that they ALL take the same amount of time to reach the same spot (xalign -1.0), thus resetting themselves all at the same time.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Ocelot