[Solved] Transition with explosion effect?

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
Marchare
Newbie
Posts: 19
Joined: Mon Apr 28, 2014 7:43 pm
Contact:

[Solved] Transition with explosion effect?

#1 Post by Marchare »

So I'm working on the Ren'py port of a Japanese visual novel, and I'm stuck at the first transition.

First is normal speed, other one has been slowed down to 1 frame per second

Image Image

From what I can see, the transitions goes like this:
1) starts with a black background + the textbox
2) there is a first flash, with the white patch growing and taking almot the entire window very quickly
3) the white patch retreats/shrinks and the background goes black again
4) there come second, much slower flash.

Should I use something similar to circlerisin from the renpy tutorial and fiddle with the ramplen? Should I make a transparent white circle and have it zoom in and out?
I believe there are quite a lot of ways I could re-create that explosion effect with Ren'py, but I don't know where to start.

Edit: Alright, for anyone in the future that would need it, here's the code I found for a decent imitation:

Code: Select all

image white = Solid("#ffffff")

label start:
    scene white
    with ImageDissolve("light.png", .1, 50)
    scene black
    with ImageDissolve("light.png", .1, 50, reverse=True)
    scene white
    with ImageDissolve("light.png", .8, 50)
For my case, this transition will only be used once so I didn't feel the need to define it, not that I know how to do so.
Last edited by Marchare on Tue Dec 16, 2014 8:40 am, edited 3 times in total.

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: Transition with explosion effect?

#2 Post by xela »

I am not very good with transitions but both of your ideas are perfectly sound and my approach would be to go with a custom transition(s) instead of ATL (zoom) here but as that seems more reasonable to me but that depends on a coder...
Like what we're doing? Support us at:
Image

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Transition with explosion effect?

#3 Post by PyTom »

I think this is just an ImageDissolve with the appropriate control image.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
Marchare
Newbie
Posts: 19
Joined: Mon Apr 28, 2014 7:43 pm
Contact:

Re: Transition with explosion effect?

#4 Post by Marchare »

Alright, for anyone in the future that would need it, here's the code I found for a decent imitation:

Code: Select all

image white = Solid("#ffffff")

label start:
    scene white
    with ImageDissolve("light.png", .1, 50)
    scene black
    with ImageDissolve("light.png", .1, 50, reverse=True)
    scene white
    with ImageDissolve("light.png", .8, 50)
For my case, this transition will only happen once so I didn't feel the need to define it, not I know how to do so.

Thanks for your help! :D
Attachments
light.png

Post Reply

Who is online

Users browsing this forum: Google [Bot]