How to use a transition to realize this?

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
bbs3223474
Regular
Posts: 33
Joined: Thu Apr 02, 2015 12:17 am
Contact:

How to use a transition to realize this?

#1 Post by bbs3223474 » Tue Jan 19, 2016 12:49 pm

For example, this image:
Image

In my case, I want Ren'py to move it from bottom to top just like look upon the sky. But when I tried "moveintop" statement, it can only slide in and stop when the image border reaches the bottom of the window, like this:
Image

But actually I want it finally be like this: (screenshot from original game)
Image

I found myself hard to understand how to use the "MoveTransition" statement according to Ren'py documentaition, so if anyone know how to realize this effect please tell me, thanks!
Opensource project of a Ren'py transplanted game: https://github.com/bbs3223474/HANA16_Renpy

User avatar
Keinart
Regular
Posts: 133
Joined: Sun May 13, 2012 8:28 pm
Completed: One Thousand Lies
Projects: Lotus Reverie
Organization: Keinart Lobre
Tumblr: keinart
itch: keinart
Location: Spain
Contact:

Re: How to use a transition to realize this?

#2 Post by Keinart » Tue Jan 19, 2016 1:09 pm

You are using transitions that move sprites inside the game to different positions, while what you want to do is to move the scene. In this case is pretty easy but in some other situations it's better to use transforms.

The easier thing would be just stating the positions with "at".

Code: Select all

scene sky
scene sky at top with move
This first line should display the scene as in your screenshot, with the bottom center of the scene aligned with the bottom center of the screen. Then the second line will use the move transition to move the scene to the top as in the screenshot from the original game.

User avatar
bbs3223474
Regular
Posts: 33
Joined: Thu Apr 02, 2015 12:17 am
Contact:

Re: How to use a transition to realize this?

#3 Post by bbs3223474 » Wed Jan 20, 2016 3:03 am

Keinart wrote:You are using transitions that move sprites inside the game to different positions, while what you want to do is to move the scene. In this case is pretty easy but in some other situations it's better to use transforms.

The easier thing would be just stating the positions with "at".

Code: Select all

scene sky
scene sky at top with move
This first line should display the scene as in your screenshot, with the bottom center of the scene aligned with the bottom center of the screen. Then the second line will use the move transition to move the scene to the top as in the screenshot from the original game.
Not so perfect but also can do. Actually I have another image before this sky image and I want to hide the previous one with dissolve when the sky shows.
Opensource project of a Ren'py transplanted game: https://github.com/bbs3223474/HANA16_Renpy

Post Reply

Who is online

Users browsing this forum: No registered users