Same screen shown multiple times

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
Lezalith
Regular
Posts: 82
Joined: Mon Dec 21, 2015 6:45 pm
Contact:

Same screen shown multiple times

#1 Post by Lezalith » Mon Jul 18, 2016 7:53 pm

I don't want to create multiple same screens with different names just for this purpose.

Code: Select all

    $ moodChangeVariable = "Relaxed"
    $ moodChangeValue = +1

    show screen moodChange
    "You take a view around yourself."
    pause 1.0
    hide screen moodChange

    $ moodChangeVariable = "Sad"
    $ moodChangeValue = +1

    show screen moodChange
    pause 1.0
    hide screen moodChange
    
    "It's actually kinda sad."
It's simple with only one of the screens. With two however, you need to wait 1s for the custom transform to be done, before you can re-show the screen. Any way I can bypass that and allow the same screen to be shown at the same time?

Also, if there is a possible way how to do that, any idea how I can delay the "show screen" only and not pause the entire game (because that delays text too)?

Post Reply

Who is online

Users browsing this forum: Google [Bot], _ticlock_