stupid easy question

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
TamakiShibo
Regular
Posts: 27
Joined: Sat Jul 07, 2018 1:24 pm
Contact:

stupid easy question

#1 Post by TamakiShibo »

how to do screen without textboxes? like i want to show background, without textbox, and have it wait for player to press lmb so it goes somewhere.

sorry for bad english :?

User avatar
Per K Grok
Miko-Class Veteran
Posts: 882
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:

Re: stupid easy question

#2 Post by Per K Grok »

TamakiShibo wrote: Fri Jul 27, 2018 7:57 am how to do screen without textboxes? like i want to show background, without textbox, and have it wait for player to press lmb so it goes somewhere.

sorry for bad english :?

If I understand you correctly, you want the game to wait for a left mouse button click and then go somewhere else.

The simplest way to do that would be

Code: Select all

    pause
    jump somewhere_else

TamakiShibo
Regular
Posts: 27
Joined: Sat Jul 07, 2018 1:24 pm
Contact:

Re: stupid easy question

#3 Post by TamakiShibo »

its working good, but is it possible to display background without empty textbox?

User avatar
xavimat
Eileen-Class Veteran
Posts: 1461
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Discord: xavimat
Contact:

Re: stupid easy question

#4 Post by xavimat »

This question is not stupid at all. There are more implications that could seem.

Look at this code:

Code: Select all

label start:
    
    # 1
    scene bg park
    pause
    "Bla bla bla"
    
    # 2
    window hide
    pause

    # 3
    "Bla bla bla 2"
    pause
    
    return
1. The first part does what you need: use scene to hide all images and the textbox and show a background. Put "pause" after it so the player can see the background (or the CGI, whatever image) before anything else.

2. The second uses window hide. This way, the textbox is visible only when text is shown, and the dissolve of the textbox is lost. Also, if you change an expression of a character, for example, with "dissolve", the time while dissolving the textbox will be gone.

3. The third part shows how the textbox is only visible when there is actual text to show.

You probably need only the first part. But if you need, you can use window hide, window show, window auto. See more here: https://renpy.org/doc/html/dialogue.htm ... management
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

TamakiShibo
Regular
Posts: 27
Joined: Sat Jul 07, 2018 1:24 pm
Contact:

Re: stupid easy question

#5 Post by TamakiShibo »

that is what i need. thanks!

Post Reply

Who is online

Users browsing this forum: Dark12ose, Sugar_and_rice