How do I create a scene with no sprites or textbox?

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
LegendOri
Newbie
Posts: 14
Joined: Tue Jul 04, 2017 8:39 am
Contact:

How do I create a scene with no sprites or textbox?

#1 Post by LegendOri » Tue Jul 04, 2017 8:50 am

Hello,

This is my first post but I've been following this forum for a while now and I have to say it has been extremely helpful, thank you!

I feel a bit embarrassed to ask as I'm certain there's a really simple solution to this but I just can't seem to find the answer. My question is, how do I make a scene without dialogue/narrative or images? Here's an example of what I'm currently doing:

scene bg meadow
with fade
pause 4

scene bg house
with fade

However I'm finding that if you click to skip to the next scene it overrides any transition. How can I do this without using pause so you can just click to get to the next scene without any time constraint and keep the transitions?

Many thanks!

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3636
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: How do I create a scene with no sprites or textbox?

#2 Post by Imperf3kt » Tue Jul 04, 2017 9:22 am

Code: Select all

    window hide
    scene bg meadow
    with fade
    # You can cut back on lines by combining the two previous statements, into one. scene bg meadow with fade
    # This only works if you have no other images to fade in at the same time.

    scene bg house
    with fade
    window show
    "Story continues here"
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

LegendOri
Newbie
Posts: 14
Joined: Tue Jul 04, 2017 8:39 am
Contact:

Re: How do I create a scene with no sprites or textbox?

#3 Post by LegendOri » Tue Jul 04, 2017 9:39 am

Hi Imperf3kt,

Thanks for the reply. I tried this method but with this example I'm finding the meadow scene blinks onto the screen for half a second and then cuts to house scene which isn't what I want to do.

Could this be to do with my settings?

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3636
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: How do I create a scene with no sprites or textbox?

#4 Post by Imperf3kt » Tue Jul 04, 2017 3:21 pm

That's because of the "scene" command
Try using "show" instead - it also works for backgrounds, you aren't required to use "scene" all the time.

Code: Select all

    window hide
    scene bg meadow with fade

    show bg house with fade
    window show
    "Story continues here"
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

LegendOri
Newbie
Posts: 14
Joined: Tue Jul 04, 2017 8:39 am
Contact:

Re: How do I create a scene with no sprites or textbox?

#5 Post by LegendOri » Tue Jul 04, 2017 3:51 pm

Hmm..I've tried both variations of scene and show for bg meadow and bg house, but it still only shows bg meadow for just half a second before cutting to bg house. I'm not sure why it's doing this :(

User avatar
DannyGMaster
Regular
Posts: 113
Joined: Fri Sep 02, 2016 11:07 am
Contact:

Re: How do I create a scene with no sprites or textbox?

#6 Post by DannyGMaster » Tue Jul 04, 2017 4:19 pm

Don't know if this will help, but I kind of solved this problem by creating a blank character that says nothing:

Code: Select all

define nothing = Character('', window_background=None) #This is the blank character, kind of a placeholder

label start:
   "Changing scenes."

    window hide
    scene bg meadow with fade

    nothing "" #Here I have nothing say an empty string. The user clicks, the next image is shown.

    scene bg house with fade
    window show
    "Story continues here"
I admit this is not the best solution and I hope someone does have a better one, I've also tried all manner of ways and this was the only one that worked.
The silent voice within one's heart whispers the most profound wisdom.

LegendOri
Newbie
Posts: 14
Joined: Tue Jul 04, 2017 8:39 am
Contact:

Re: How do I create a scene with no sprites or textbox?

#7 Post by LegendOri » Tue Jul 04, 2017 4:58 pm

Thank you DannyGMaster, this works! :D

Also just to add, I used window auto rather than window show so that it still fades out with each scene.

User avatar
TellerFarsight
Veteran
Posts: 230
Joined: Sun Jun 04, 2017 8:09 pm
Projects: Vora, Secrets Untold
Location: Toronto, ON
Contact:

Re: How do I create a scene with no sprites or textbox?

#8 Post by TellerFarsight » Tue Jul 04, 2017 5:51 pm

If you just type

pause

instead of

pause 4

it becomes a pause that lasts forever until you click. Just try removing the 4 and see if that works.
Current Project: Vora
Also Check Out: Devil Survivor [Reverse-Engineered]

Post Reply

Who is online

Users browsing this forum: Google [Bot]