Difference between revisions of "MessageBox Tutorial"

Jump to navigation Jump to search
3 bytes added ,  11:03, 29 August 2007
m
imported>Haama
imported>Haama
set Choice to GetButtonPressed
...</pre>
This works, but you will never be able to return to the first menu. To fix this, place the menu in the GameMode block,. andSet startChoosing itto up-1 likein thisthe onActivate block to display the menu:
<pre>begin onActivate
set Choosing to -1
...</pre>
 
ForTo the ending,stop you can set '''''Choosing''''' back to 0. However, note that the GameMode block continues to run. To reduce the number of '''if'''[[If]] tests run each frame, use [[Return]] if '''''Choosing''''' is 0:
<pre>begin onActivate
set Choosing to -1
Anonymous user

Navigation menu