[Resolved] ATL and transitions

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
Gear
Miko-Class Veteran
Posts: 764
Joined: Tue Apr 05, 2011 10:15 pm
Projects: Tempestus Sum
Organization: Xenokos Interactive
IRC Nick: Gear
Skype: Skye.Gear
Location: Grand Prairie, TX
Contact:

[Resolved] ATL and transitions

#1 Post by Gear »

Can't seem to figure this out:

Code: Select all

image steamroll:
    "extras/sr1.png"
    pause .5
    "extras/sr2.png"
    pause .5
    "extras/sr3.png"
    pause .5
    "extras/sr4.png"
    pause .5
    repeat
Adding

Code: Select all

with dissolve
after the image before the pause doesn't work. Does ATL not accept transitions, or is there some other way to do it?
Last edited by Gear on Mon Sep 12, 2011 3:05 pm, edited 1 time in total.
The best reason to get up in the morning is to outdo yourself: to do it better than you've ever done it before. But if you haven't done it better by nightfall... look at your globe and pick a spot: it's always morning somewhere.

bink
Regular
Posts: 49
Joined: Sat Jul 09, 2011 4:34 pm
Contact:

Re: ATL and transitions

#2 Post by bink »

Try this:

Code: Select all

image steamroll:
    "extras/sr1.png" with Dissolve(0.5, alpha=True)
    pause .5
    "extras/sr2.png" with Dissolve(0.5, alpha=True)
    pause .5
    "extras/sr3.png" with Dissolve(0.5, alpha=True)
    pause .5
    "extras/sr4.png" with Dissolve(0.5, alpha=True)
    pause .5
    repeat
It should work.

User avatar
Gear
Miko-Class Veteran
Posts: 764
Joined: Tue Apr 05, 2011 10:15 pm
Projects: Tempestus Sum
Organization: Xenokos Interactive
IRC Nick: Gear
Skype: Skye.Gear
Location: Grand Prairie, TX
Contact:

Re: ATL and transitions

#3 Post by Gear »

That worked very well! But what does the alpha=True part mean?
The best reason to get up in the morning is to outdo yourself: to do it better than you've ever done it before. But if you haven't done it better by nightfall... look at your globe and pick a spot: it's always morning somewhere.

bink
Regular
Posts: 49
Joined: Sat Jul 09, 2011 4:34 pm
Contact:

Re: ATL and transitions

#4 Post by bink »

You have to use it your image contains transparency.
Function: Dissolve (time, old_widget=None, new_widget=None, alpha=False):
This dissolves from the old scene to the new scene, by overlaying the new scene on top of the old scene and varying its alpha from 0 to 255. Dissolve only works correctly when both scenes are the same size.

time - The amount of time the dissolve will take.

alpha - If True, the resulting displayable will have an alpha channel, at the cost of some speed. If False, it will be treated as opaque, but be faster.

Post Reply

Who is online

Users browsing this forum: juliaa__