Page 1 of 1

How to play text and image effect at the same time?

Posted: Sat Oct 06, 2007 2:07 am
by KnightBaron
I'm porting Narcussu to Ren'Py but I can't find any substitute command in Ren'Py for erasetextwindow in ONScripter.
http://nscripter.insani.org/reference/m ... window.htm
Well, Sorry about my bad English again, Hope you understand what I'm try to say.

Re: How to play text and image effect at the same time?

Posted: Sat Oct 06, 2007 2:35 am
by PyTom
Can you describe what you're trying to accomplish? I think you can do it by setting _window_during_transitions to True (or False, depending), but I'm not 100% sure what you want.

Re: How to play text and image effect at the same time?

Posted: Sat Oct 06, 2007 6:49 am
by KnightBaron
The thing is I'm trying to play text narration and image transition at the same time.

Re: How to play text and image effect at the same time?

Posted: Sat Oct 06, 2007 7:01 am
by monele
I think it's just like what I asked at some point : have the text window remain at all times, even if other things are changed (show, hide, transitions...)

Re: How to play text and image effect at the same time?

Posted: Sat Oct 06, 2007 11:00 am
by PyTom
So that's done by

Code: Select all

$ _window_during_transitions = True

Re: How to play text and image effect at the same time?

Posted: Sat Oct 06, 2007 11:52 am
by rocket
Nifty...

But the text still dissapears, only the text window stays in place.

I'd like a way to do a shake transition, like an hpunch, while keeping the text and window up, possibly even shaking the text filled window along with the scene. Any chance of that being possible?

Re: How to play text and image effect at the same time?

Posted: Sat Oct 06, 2007 12:35 pm
by PyTom
Yeah, you can write:

"She hit me hard!" with hpunch

Re: How to play text and image effect at the same time?

Posted: Sat Oct 06, 2007 1:19 pm
by rocket
Brilliant! Thankee!

Re: How to play text and image effect at the same time?

Posted: Sat Oct 06, 2007 3:11 pm
by KnightBaron
Can I change multiple background image along with text narrartion?

Code: Select all

n "sometext"
scene img_e_c001a with dissolve
scene img_e_c001b with dissolve
scene img_e_c001 with dissolve
scene img_e_c002 with dissolve
scene img_e_c003 with dissolve
$renpy.pause(0.7)
scene img_e_c004 with dissolve
$renpy.pause(1.0)
In above example, "sometext" is display first and we need a click to advance to the image sequence
I want to get rid of that click and let the text narration and image sequence run at the same time.

Re: How to play text and image effect at the same time?

Posted: Sat Oct 06, 2007 4:01 pm
by PyTom
What you want to do is to create an anim.TransitionAnimation, and show that.

Re: How to play text and image effect at the same time?

Posted: Sat Oct 06, 2007 4:45 pm
by monele
Oops... I forgot there *was* a way to keep the window ^^;... At some point I imagined having the window displayed in the overlay function (maybe it could give more control as to when it's shown).

As for the last question, maybe using interact=false with the say function could also work? *ponders*

Re: How to play text and image effect at the same time?

Posted: Sun Oct 07, 2007 12:57 am
by KnightBaron
PyTom wrote:What you want to do is to create an anim.TransitionAnimation, and show that.
I'll try that. Thank you.

edit: And that's worked. Thanks a lot.