Faster hide 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
JayBlue
Regular
Posts: 86
Joined: Fri Aug 26, 2016 7:10 pm
Location: Space
Contact:

Faster hide transitions

#1 Post by JayBlue »

I want to hide a character with a 'moveoutright' transition. But I want them to transition faster. How do I do this?
If an Owl hoots in a forest, does it make a sound?

User avatar
Divona
Miko-Class Veteran
Posts: 678
Joined: Sun Jun 05, 2016 8:29 pm
Completed: The Falconers: Moonlight
Organization: Bionic Penguin
itch: bionicpenguin
Contact:

Re: Faster hide transitions

#2 Post by Divona »

Set transitions are time lock. To have full control over movement, see ATL (Animation and Transformation Language).

Code: Select all

transform my_moveoutright(duration):
    linear duration xalign 2.0

label start:
    scene bg room
    show eileen happy

    "Now you see me."

    show eileen happy at my_moveoutright(0.5)    # change 0.5 to other time you want in second.

    "Now you don't!"

    hide eileen

    return
Alternatively, using MoveTransition():

Code: Select all

## Create new position outside screen right.
transform outright:
    xalign 2.0
    
label start:
    scene bg room
    show eileen happy

    "Now you see me."

    show eileen happy at outright with MoveTransition(0.5)    # change 0.5 to other time you want in second.

    "Now you don't!"

    hide eileen

    return
Completed:
Image

User avatar
JayBlue
Regular
Posts: 86
Joined: Fri Aug 26, 2016 7:10 pm
Location: Space
Contact:

Re: Faster hide transitions

#3 Post by JayBlue »

I see. Thank you :)
If an Owl hoots in a forest, does it make a sound?

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Ocelot