How to close a menu?

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
Gustavs14
Regular
Posts: 44
Joined: Mon Apr 03, 2017 2:06 pm
Contact:

How to close a menu?

#1 Post by Gustavs14 »

Hello! I am trying to have "menu" options and then the story needs to continue down 1 path again.

Here is the problem : http://imgur.com/a/TaJaH

I don't know what I am doing wrong, but I want the menu to end after "Ah, That's better" (as well as the new image enteringtheapartment2 showing up and continuing the story, which is not part of the menu anymore), but right now it just stays at the first "enteringtheapartment5" picture throughout all the story...

Really need a reply on this, I'm starting to get mad :D

Thanks!

User avatar
Divona
Miko-Class Veteran
Posts: 678
Joined: Sun Jun 05, 2016 8:29 pm
Completed: The Falconers: Moonlight
Organization: Bionic Penguin
itch: bionicpenguin
Contact:

Re: How to close a menu?

#2 Post by Divona »

A problem I see is the indentation of the "menu". Its still part of the label, so it needs to be inside the label.

Code: Select all

label start:
    . . .

    menu:
        "Knock on the door":
            jump knockingonthedoor1

label knockingonthedoor1:
    show enteringtheapartment5

    "knock..."
    pause 2.0

    "..."
    mc "{i}Guess I'm trying again..."

    . . .
Completed:
Image

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

Re: How to close a menu?

#3 Post by Imperf3kt »

Can you perhaps paste the code or attach it in future? It's somewhat bothersome having to jump over to imgur just to see what your issue is. It also makes retyping it for you, cumbersome.

You haven't closed the italics {/i} in two lines. Though, I don't know if this is strictly required.
Divona beat me to the rest.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Gustavs14
Regular
Posts: 44
Joined: Mon Apr 03, 2017 2:06 pm
Contact:

Re: How to close a menu?

#4 Post by Gustavs14 »

Imperf3kt wrote:Can you perhaps paste the code or attach it in future? It's somewhat bothersome having to jump over to imgur just to see what your issue is. It also makes retyping it for you, cumbersome.

You haven't closed the italics {/i} in two lines. Though, I don't know if this is strictly required.
Divona beat me to the rest.
Alright, I'll copy it!

Right now it looks like this :

"You take a deep breath..."
mc "(...I guess it's time...)"
jump knockingonthedoor1
label knockingonthedoor1:
menu:
"Knock on the door":
jump knockingonthedoor2
label knockingonthedoor2:
show enteringtheapartment5
"knock..."
pause 2.0
"..."
mc "{i}Guess I'm trying again..."
show enteringtheapartment5
with vpunch
"knock"
mc "(Ah, {i}that's better)"
jump knockingonthedoor1end
label knockingonthedoor1end:
show enteringtheapartment2

Post Reply

Who is online

Users browsing this forum: Google [Bot]