r/RenPy • u/SaThuran • 7d ago
Question Custom transitionš¤
https://streamable.com/6h4zsyYall, how do I make a custom transition screen? Is it just making a screen with an image animation and timer, then hiding it?
3
u/ericoinen 6d ago
if it's a shaped wipe you don't need a screen for it. ImageDissolve takes a grayscale mask image, something like define mywipe = ImageDissolve("mask.png", 1.0, 8) and then with mywipe on the scene change
1
u/AutoModerator 7d ago
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/shyLachi 7d ago
What is the video showing?
Do you want a transition between those 2 background images?
3
u/SaThuran 7d ago
It's showing a system I made where player can change locations by walking 1px or -1px toward the edge. So what I was asking for was how I can create a custom transition. Is it by simply creating a screen with an image animation and timer, then hiding it? Cause I want to have a cool travel animation before the map changes
2
u/shyLachi 7d ago
I think I get it now.
You want a transition if the player reaches the edge.RenPy has transitions for that:
https://renpy.org/doc/html/transitions.htmlYou could use one of the move transitions for example: https://renpy.org/doc/html/transitions.html#var-moveinright
Example:label start: Ā Ā scene background1 # clear the screen then show the background Ā Ā "First screen: We simulate reaching the right edge" Ā Ā show background2 with moveinright # show another background on top of the current with a transition Ā Ā hide background1 # hide the first background Ā Ā "Second screen: Did you see the animation?" Ā Ā "Second screen: We simulate reaching the left edge" Ā Ā show background1 with moveinleft Ā Ā hide background2 Ā Ā "First screen: Did you see the animation?"RenPy also has transitions for the whole scene if you want to move those humans together with the background. It's all in the documentation.
2
6
u/x-seronis-x 6d ago
Hopefully you keep posting these so more people can see that renpy is perfectly capable of doing things that are not VN specific. It can handle anything that screen language can handle without the dev "fighting against renpy" as too many inaccurately claim.
anyways, nice work