How do you make a variable you make work? -
06-13-2011, 01:34 PM
I need help with a game I am making. I want to make a variable that is called world.forever that will ask the player if he wants to play forever or not. I already know how to make Alice ask, but how do i make it go forever if the variable is true and and not if its false?
Well, if the variable is a number variable, and the person says "yes" to play forever, then have the variable to set value to infinity. (just type infinity into the custom numbers)
--------------------------------------------------------------------------------------------------------------------------
I have plenty of common sense. I just choose to ignore it.
-Calvin and Hobbes
Wondering about my Avatar?
http://en.wikipedia.org/wiki/Tardigrade
Wondering about my username?
http://www.youtube.com/watch?v=jG7vhMMXagQ
You could use an if/else method. See the attached program for an example. The text will tell you what the variable is set to, and to gurantee no errors, I have put a watch on the variable so you can see the actual variable.