Question about Text-advancing

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
Guest

Question about Text-advancing

#1 Post by Guest » Mon Jan 26, 2009 8:53 pm

I have a piece of text displayed and use autoadvance {nw} to automatically call the next event (e.g. an image appears). However, I now want the text to stay as it is until the next click (normally, the next piece of text already appears)

In short, what I want to achieve is: Text1 displays --> Image displays automatically --> Text1 is still there (until the user clicks again)

(PS: Also, is there a simple "wait for user click" function?)

Thanks for your time!

User avatar
JQuartz
Eileen-Class Veteran
Posts: 1265
Joined: Fri Aug 31, 2007 7:02 am
Projects: 0 completed game. Still haven't made any meaningfully completed games...
Contact:

Re: Question about Text-advancing

#2 Post by JQuartz » Mon Jan 26, 2009 9:08 pm

Er...I don't really get what you mean but try this code:

Code: Select all

init:
    image blue=Solid('#0f0')
label start:
    "This is Text 1: The world is spherical and it's plagued by global warming{nw}"
    show blue
    "This is Text 1: The world is spherical and it's plagued by global warming{fast}"
I suspect somebody is stealing my internet identity so don't believe everything I tell you via messages. I don't post or send messages anymore so don't believe anything I tell you via messages or posts.

User avatar
Megaman Z
Miko-Class Veteran
Posts: 829
Joined: Sun Feb 20, 2005 8:45 pm
Projects: NaNoRenO 2016, Ren'Py tutorial series
Location: USA
Contact:

Re: Question about Text-advancing

#3 Post by Megaman Z » Mon Jan 26, 2009 10:20 pm

alternatively, you can substitute this instead of typing in the second line:

Code: Select all

    extend ""
this results in:

Code: Select all

init:
    image blue=Solid('#0f0')
label start:
    "This is Text 1: The world is spherical and it's plagued by global warming{nw}"
    show blue
    extend ""
note that, ideally, you would have the text be appearing at a relatively slow CPS (Character-Per-Second), otherwise you won't see much of an effect.

(extend is a special "character" that adds on to the previous say command or [if given a null string like in the code above] keeps the previous say command exactly as it is)
~Kitsune Zeta

Guest

Re: Question about Text-advancing

#4 Post by Guest » Thu Jan 29, 2009 9:27 pm

Thanks a lot! Will try that right away

Post Reply

Who is online

Users browsing this forum: No registered users