- Feb 2, 2018
- 923
- 3,925
Holla,
I finished making a menu with different scenes. The idea of the menu was the following:
The menu has three values from which the user can select.
If the user will select value A then after he is redirected to the label A, when returning upon the menu, the other two values would be available for selection without the one previously select. When he selected the other values as there would be nothing to select from, the user will be redirected to another part in the game.
I've used the following code:
default hall_set = []
menu hall:
set hall_set
"visit [A]":
jump A_scene
"visit ":
jump B_scene
"visit [C]":
jump C_scene
jump after_menu
#If the user will select A, the game should be redirected to this scene:
label A_scene:
"Cuba Libre"
return hall
So without the "jump after_menu" label, I will be sending the user into a loop from which he can't exit.
Le question: Is it ok for me to use the label for exiting the loop? I am asking this because I don't know if further into the game there will be a downside for using too many labels (except maybe for confusion).
If there is a downside to this, how can I exit the loop without the two pills from Matrix?
Thanks
I finished making a menu with different scenes. The idea of the menu was the following:
The menu has three values from which the user can select.
If the user will select value A then after he is redirected to the label A, when returning upon the menu, the other two values would be available for selection without the one previously select. When he selected the other values as there would be nothing to select from, the user will be redirected to another part in the game.
I've used the following code:
default hall_set = []
menu hall:
set hall_set
"visit [A]":
jump A_scene
"visit ":
jump B_scene
"visit [C]":
jump C_scene
jump after_menu
#If the user will select A, the game should be redirected to this scene:
label A_scene:
"Cuba Libre"
return hall
So without the "jump after_menu" label, I will be sending the user into a loop from which he can't exit.
Le question: Is it ok for me to use the label for exiting the loop? I am asking this because I don't know if further into the game there will be a downside for using too many labels (except maybe for confusion).
If there is a downside to this, how can I exit the loop without the two pills from Matrix?
Thanks