Menu syntax
Posted: Tue Mar 08, 2022 7:49 am
Hello! This is maybe a silly question, but I haven't found the answer anywhere so I thought I'd ask here.
Basically, when I look up tutorials and things about creating a menu, most examples I see are formatted like this:
My question is, is there any reason why it shouldn't be formatted like this?:
Is it one of these things where it is personal preference or is the first way more "correct" and if so, why?
Basically, when I look up tutorials and things about creating a menu, most examples I see are formatted like this:
Code: Select all
label menuexample:
menu:
"Choice 1":
jump choice1
"Choice 2":
jump choice2
label choice1:
"This is what happens here."
jump nextlabel
label choice2:
"Something else happens here."
jump nextlabel
label nextlabel:
"The game continues here."
Code: Select all
label menuexample:
menu:
"Choice 1":
"This is what happens here."
jump nextlabel
"Choice 2":
"Something else happens here."
jump nextlabel
label nextlabel:
"The game continues here."