Menu options won't disappear?

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
Confused guest

Menu options won't disappear?

#1 Post by Confused guest »

I was just trying out some basic things to work a simple game, and my menu options won't disappear. D:

I put in two options and when either one clicks, it gives the correct result, but the option labels simply go behind the scene picture. How can I fix this?

This is my menu code. I can provide more.

menu:
"Get mad?":
jump choice1_getmad

"Go away?":
jump choice2_goaway

label choice1_getmad:
$ menu_flag = True
t "Shutuppppp!"
jump finish
label choice2_goaway:
$ menu_flag = True
t "I'm just going to go..."
jump finish
label finish:
oz "..."
scene breakcake2
with Dissolve(.5)

Bocom
Newbie
Posts: 23
Joined: Sat Aug 08, 2009 2:06 pm
Projects: Yeah, 6-7 or more... <_<
Location: Sweden
Contact:

Re: Menu options won't disappear?

#2 Post by Bocom »

Can you please wrap it around code tags? It's kinda hard to read the code when the indentation is messed up.

Guest

Re: Menu options won't disappear?

#3 Post by Guest »

Oops, sorry! Here we go.

Code: Select all

    menu:
        "Get mad?":
            jump choice1_getmad
            
        "Go away?":
            jump choice2_goaway
            
label choice1_getmad:
    $ menu_flag = True
    t "SHUT UP, BOTH OF YOU!"
    jump finish
label choice2_goaway:
    $ menu_flag = True
    t "I'm just going to go..."
    jump finish
label finish:
    oz "..."
    scene breakcake2
    with Dissolve(.5)

delta
Epitome of Generic
Posts: 525
Joined: Sat Dec 22, 2007 12:59 pm
Projects: yes
Contact:

Re: Menu options won't disappear?

#4 Post by delta »

I don't know how and if that leads to your problem, but your menu block is very obviously one indentation level too deep.
The rest is left as an exercise for the reader.

Guest

Re: Menu options won't disappear?

#5 Post by Guest »

Okay, I changed the menu...

Er, then new question: How do you change where the menu options are positioned?

JQuartz
Eileen-Class Veteran
Posts: 1265
Joined: Fri Aug 31, 2007 7:02 am
Projects: 0 completed game. Still haven't made any meaningfully completed games...
Contact:

Re: Menu options won't disappear?

#6 Post by JQuartz »

I suspect somebody is stealing my internet identity so don't believe everything I tell you via messages. I don't post or send messages anymore so don't believe anything I tell you via messages or posts.

Guest

Re: Menu options won't disappear?

#7 Post by Guest »

Ooh, thanks so much!

Sorry for being so newb. xD

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot]