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

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
KnightBaron
Newbie
Posts: 7
Joined: Wed Aug 08, 2007 11:13 am
Contact:

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

#1 Post 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.

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: How to play text and image effect at the same time?

#2 Post 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.
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

KnightBaron
Newbie
Posts: 7
Joined: Wed Aug 08, 2007 11:13 am
Contact:

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

#3 Post by KnightBaron »

The thing is I'm trying to play text narration and image transition at the same time.

monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

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

#4 Post 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...)

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: How to play text and image effect at the same time?

#5 Post by PyTom »

So that's done by

Code: Select all

$ _window_during_transitions = True
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

rocket
Veteran
Posts: 373
Joined: Tue Jul 10, 2007 2:54 am
Projects: Starlight Ep0, Ep1
Location: San Fransisco
Contact:

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

#6 Post 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?

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: How to play text and image effect at the same time?

#7 Post by PyTom »

Yeah, you can write:

"She hit me hard!" with hpunch
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

rocket
Veteran
Posts: 373
Joined: Tue Jul 10, 2007 2:54 am
Projects: Starlight Ep0, Ep1
Location: San Fransisco
Contact:

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

#8 Post by rocket »

Brilliant! Thankee!

KnightBaron
Newbie
Posts: 7
Joined: Wed Aug 08, 2007 11:13 am
Contact:

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

#9 Post 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.

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: How to play text and image effect at the same time?

#10 Post by PyTom »

What you want to do is to create an anim.TransitionAnimation, and show that.
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

monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

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

#11 Post 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*

KnightBaron
Newbie
Posts: 7
Joined: Wed Aug 08, 2007 11:13 am
Contact:

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

#12 Post 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.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]