Tip: Use an a/b choice.
Posted: Fri Nov 05, 2004 1:26 am
This tip was designed for beginners in Qbasic. The following can be used for a process in which you need somthing to happen on/off repeatedly.
This is probably basic knowledge to all of you, but I'm only in the ninth grade and have only made a handful of games, and therefore this is useful to my peers.
Code: Select all
variable = 0
do
if variable > 1 then
variable = variable - 2
end if
loop until vatiable < 2
if variable = 1 then
step 1
else
step 2
end if