Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Ren'Py Ripple Transition

A custom transition to displace the screen for dream sequences, water or magic effects, and more. · By Feniks

Need Support? Post here! Sticky

A topic by Feniks created Oct 14, 2023 Views: 504 Replies: 10
Viewing posts 1 to 5
Developer

If you're having trouble or run into any bugs with the code, post a comment here! I will try to get back to you within a few days.

In the transition class's render method, it seems that time_warp is applied after it calculates easein_time and center_warp. I believe time_warp should instead be applied before those two, because otherwise, easein_time and center_warp will be on a different timeline from the ripples.

Developer

Good points! Feel free to make those changes; I've noted it down for my own version. I'll be going through all my tools at some point to test for 8.3 compatibility so I will add this in at that time :)

Is it possible to have this affect the main displayables layer, but not screens? With() takes no layer argument, and Hide(screen="foo", transition=ripple, _layer="master") doesn't do it. I've wanted to create a ripple effect when choice options appear for ages and this looks perfect, but unfortunately ripples over the menu when it appears.

Developer(+1)

You'll need to use dict transitions to have transitions only apply to specific layers! You can read more about how to set that up here: https://www.renpy.org/doc/html/transitions.html#dict-transitions

Oh heck, that simple huh? Rad~.

I think the next thing I'd like to do is have the ripples fade out earlier than move until the edge of the screen. (Because I want their motion to be slow, but the time of the effect to be short.) I suspect I need to use time warps to do that?

Developer

I'm not 100% sure of the effect you're looking for based on your description, but if you'd like to fine-tune the transition speed then you'll use warpers yes.

Hey! I'm unsure whether you ever got around to testing for 8.3 compatibility, but I've given this a test with a project on 8.3.6 and am unable to get it working. I've tried both the ripple test and using it in my own functions, and neither displays any results. It isn't throwing any errors, just not having any visible effect. 

Developer(+1)

Hey there! Thanks for the report - I'll investigate this soon.

Developer(+1)

Hello! I was able to test this and it is working as expected on Ren'Py 8.5.3, the latest release - I suggest updating if that's possible. I also didn't have any problems running it on 8.3.7. If you're still having trouble on either of these versions, make sure you can run the example code in a blank project. The problem may be with where or how you're trying to use it if it's still not working. I hope that helps!

(+1)

8.3.7 works great, thanks!