Scene and show commands are not working?

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
Pecora Z
Newbie
Posts: 22
Joined: Fri Apr 06, 2012 7:05 pm
Projects: Let's Learn Latin, An Acceptable Break From Reality
Location: Virginia
Contact:

Scene and show commands are not working?

#1 Post by Pecora Z » Tue Aug 14, 2012 10:41 pm

At the very beginning of one of my VN's, I want to make it look like a start up screen for an old NES game- it says ROM check, the you click each time for the dot dot dot to appear (as in, each click reveals a dot) and then it says 'OK !', moving onto Checking Higher Function, dotdotdot, 'OK !' and finally, Starting Dream Sequence, dotdotdot, and then the story officially begins there. The only problem is, none of the images will show up! It goes directly to when the character starts speaking.

I have tried different iterations of show [and hide], scene, removing everything before it so it literally is the very first part of the story, but nothing works. It skips directly to the commands beneath it, which interestingly enough, are play music [which I removed] and scene, and after removing the music which was the barrier between the images with ROM check, etc and the scene background for when the first character starts speaking, it still skipped directly to the background for when the character first speaks.

Basically: how do I make a series of images appear using show, hide, scene or any other commands? I'm sorry if it's a simple fix, I used to be well-versed in this and I used to have a friend of mine help me, but it's been a long time since I've bothered with Ren'py :/

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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: Scene and show commands are not working?

#2 Post by PyTom » Tue Aug 14, 2012 11:13 pm

It's hard to understand what's going on without reading the script. From now, on, post the script if you want support. That being said...

In Ren'Py, scene, show, and hide are instantaneous, and don't cause an interaction that updates the screen. You probably want to use pause to add a time delay between each scene. Some variant of:

Code: Select all

scene black
show loading one
pause .1
show loading two
pause .1
show loading three
pause .1

show loading done
pause 1

"Welcome to the game."
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Pecora Z
Newbie
Posts: 22
Joined: Fri Apr 06, 2012 7:05 pm
Projects: Let's Learn Latin, An Acceptable Break From Reality
Location: Virginia
Contact:

Re: Scene and show commands are not working?

#3 Post by Pecora Z » Tue Aug 14, 2012 11:27 pm

Thank you (sorry for not posting the code, didn't think it was needed, but I just realized how rushed my first post was) and your suggestion worked up until I got to beginning 10 and 11, where sometimes (I must have ran it about 10 times) it cuts off at 10 to skip directly to when the character starts speaking, and sometimes it cuts off at 11 to skip ahead. The .5 pauses are ROM Check, Checking Higher Function, and Starting Dream Sequence, the .15 are the dots, and the .25 are 'OK !'s, if it matters- I'm going to make the .15 and .25 longer anyways.

Code: Select all

show beginning 1
    pause .5
    show beginning 2
    pause .15
    show beginning 3
    pause .15
    show beginning 4
    pause .15
    show beginning 5
    pause .25
    show beginning 6
    pause .5
    show beginning 7
    pause .15
    show beginning 8
    pause .15
    show beginning 9
    pause .15
    show beginning 10
    pause .25
    show beginning 11
    pause .5
    show beginning 12
    pause .15
    show beginning 13
    pause .15
    show beginning 14
    pause .15

Post Reply

Who is online

Users browsing this forum: Google [Bot], Ocelot