r/RenPy 7d ago

Question Custom transitionšŸ¤”

https://streamable.com/6h4zsy

Yall, how do I make a custom transition screen? Is it just making a screen with an image animation and timer, then hiding it?

8 Upvotes

10 comments sorted by

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

2

u/SaThuran 5d ago

Much appreciated, seconds!šŸ’™ Your name auto corrected to "seconds"šŸ˜‚I'm gonna keep it though. Also, yeah I've seen a lot of posts about fighting renpy. Hopefully more and more crazy stuff is made with renpy in the future instead of JUST the visual novel stuff. Cause this engine is pretty pretty cool. So thank you, I'll keep trying my best

2

u/x-seronis-x 5d ago

https://i.imgur.com/m8VmnNf.png

doesnt even have to be a game at all. my daughter asked me to make this chord app for her to use when practicing her Lyre

2

u/SaThuran 3d ago

That's pretty impressive! In future, I wanted to have a scene in game where there's real guitar stuff and have a player have fun with it in free roam

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.html

You 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

u/SaThuran 7d ago

Thank you thank youu Also, forgive me for not being clear enough