ATL Transitions

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
PyTom
Ren'Py Creator
Posts: 15909
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

ATL Transitions

#1 Post by PyTom » Mon Apr 02, 2012 9:31 pm

Not exactly a development, but rather something that's been in Ren'Py for a while: ATL Transforms. Basically, if an ATL transform takes the new_widget and old_widget properties, and sets the delay property, it can be used as a transition. For example:

For example, a transition that spins the old scene around twice, changes, and spins the new scene twice before stopping.

Code: Select all

transform spinner(new_widget, old_widget):
    delay 1.0
    xalign 0.5 yalign 0.5

    old_widget 
    rotate 0 
    linear 0.5 rotate 720
    
    new_widget
    rotate 0
    linear 0.5 rotate 720

And a transition that slides the old scene out to the right, and the new scene in to the right.

Code: Select all

transform slidebothright(new_widget, old_widget):
    delay 0.5
    
    contains:
        old_widget
        xanchor 1.0 xpos 1.0
        ease 0.5 xanchor 0.0
        
    contains:
        new_widget
        xanchor 1.0 xpos 0.0
        ease 0.5 xanchor 0.0
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Friendbot2000
Regular
Posts: 161
Joined: Tue Feb 15, 2011 8:00 pm
Projects: Mutagen : Journey to Haven's Landing
Contact:

Re: ATL Transforms

#2 Post by Friendbot2000 » Tue Apr 03, 2012 9:22 pm

I have a quick question/comment about ATL transitions. I was wondering if there were still limitations from transitioning a sprite from one Z value to another Z value in - say - a Move transition using ATL Transitions? For example, when a guy moves from behind a tree to in front of the tree in one go. Will I have to draw him in front of the tree and the other fighters he passes for the whole movement, and having him pop up to his new Z at the beginning of movement or will I have to have him keep his old Z, staying behind the tree and other fighters he passes until he finishes his movement?

If there are limitations to this, are there any plans for fixing this in a release?
Visit my game development group's Facebook page : Timekeeper Games
Mutagen : Journey to Haven's Landing Facebook Page
Follow our Twitter feed too : TK Games

User avatar
PyTom
Ren'Py Creator
Posts: 15909
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: ATL Transitions

#3 Post by PyTom » Tue Apr 03, 2012 10:26 pm

I don't plan to change the zorder behavior. Ren'Py is a visual novel engine, and interpolating zorder doesn't make sense in a VN.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: No registered users