Change of scenery with no dialogue

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
cracklings
Newbie
Posts: 14
Joined: Sat Nov 19, 2011 10:53 am

Change of scenery with no dialogue

#1 Post by cracklings » Thu Dec 15, 2011 1:52 pm

I'm very new to using Ren'py and making games in general, so everything I'm doing is pretty basic so far. Just to give you a background.

I have a problem with transition the story. One part of the story goes from from bedroom (with dialogue) -> nighttime (no dialogue) -> daytime (no dialogue) -> classroom (with dialogue)

For the nighttime to daytime transitions, this is the code I use:

Code: Select all

    scene bg nighttime
    with Dissolve (5)

    pause 5
    
    scene bg daytime
    with Dissolve (5)

    pause .5

Naturally, when you play the game, you click and click and click. When the nighttime image comes out, the first instinct is to click. When I click, it skips the daytime image and goes straight to the next scene (classroom). I think it has something to do with the dissolve or the pause, but after several attempts to play around with this by changing numbers or removing them, I can't seem to get it right.

Is there any way for me to make the nighttime image to jump automatically to the the daytime image after clicking and not jump to the next scene (classroom)? Like a slideshow where you move to the next image by clicking.

I don't usually have a problem with this code, but all my other scenes has some kind of dialogue in them. The nighttime to daytime backgrounds have no dialogue whatsoever.

User avatar
KimiYoriBaka
Miko-Class Veteran
Posts: 636
Joined: Thu May 14, 2009 8:15 pm
Projects: Castle of Arhannia
Contact:

Re: Change of scenery with no dialogue

#2 Post by KimiYoriBaka » Thu Dec 15, 2011 2:40 pm

try using renpy.pause() instead. It seems to have different behavior.

Code: Select all

$ renpy.pause(5) 

cracklings
Newbie
Posts: 14
Joined: Sat Nov 19, 2011 10:53 am

Re: Change of scenery with no dialogue

#3 Post by cracklings » Thu Dec 15, 2011 2:45 pm

Works great! Thanks.

Post Reply

Who is online

Users browsing this forum: No registered users