Is it possible to make moving text transition?

A place for Ren'Py tutorials and reusable Ren'Py code.
Forum rules
Do not post questions here!

This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Post Reply
Message
Author
User avatar
Sakai
Regular
Posts: 80
Joined: Sat Aug 24, 2013 9:21 pm
Projects: Ragged Heart
Organization: Afterthought Studios
Contact:

Is it possible to make moving text transition?

#1 Post by Sakai » Mon Aug 26, 2013 10:13 pm

Greetings.

Could someone tell me if its possible to create a transition which causes text to dissolve while moving left/right on black screen than another scene is loaded after the text scene is successfully finished transitioning?
If I make no sense pardon for that its rather late and I had a hard day at work :|

If you have questions on what exactly Im talking about please let me know, I will try to come up with a explanation.

User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Is it possible to make moving text transition?

#2 Post by Alex » Tue Aug 27, 2013 11:17 am

You can use custom ATL transforms to show text. Try

Code: Select all

transform q:
        alpha 0.0 xalign .5 yalign .52
        ease 2 alpha 1.0 yalign .50
        ease 2 alpha 0.0 yalign .48

label start:
    scene black with fade
    $ pause_ = 4
    show text "Line 1" at q
    $ renpy.pause (pause_, hard=True)
    show text "Line 2" at q
    $ renpy.pause (pause_, hard=True)
    show text "Line 3" at q
    $ renpy.pause (pause_, hard=True)
    "?"
http://www.renpy.org/doc/html/atl.html
http://lemmasoft.renai.us/forums/viewto ... 51&t=16604

User avatar
Sakai
Regular
Posts: 80
Joined: Sat Aug 24, 2013 9:21 pm
Projects: Ragged Heart
Organization: Afterthought Studios
Contact:

Re: Is it possible to make moving text transition?

#3 Post by Sakai » Tue Aug 27, 2013 7:33 pm

Thanks a lot for that, it worked just like I wanted it to, never knew that much of python and its powers, only one script language I worked with is pawn.

Mind if I ask which line indicates the speed of text moving up?

User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Is it possible to make moving text transition?

#4 Post by Alex » Wed Aug 28, 2013 11:02 am

Code: Select all

transform q:
        alpha 0.0 xalign .5 yalign .52     # at first, let's show text a bit under the center of the screen (yalign .52) and fully transparent (alpha 0.0)
        ease 2 alpha 1.0 yalign .50        # then move the text to the center (yalign .50) and make it visible (alpha 1.0) - it takes 2 sec (ease 2)
        ease 2 alpha 0.0 yalign .48        # and then move the text slight above the center (yalign .48) and make it transparent (alpha 0.0) - it takes 2 sec (ease 2)

Post Reply

Who is online

Users browsing this forum: No registered users