At 6/13/08 12:33 AM, Afro-Ninja wrote:
like I said man, it's all about using the boolean variables to represent various states of true and false
give it a try and see what you come up with :)
AHHH BOOLEANS OR NOT MY FIRNEDSSSS.... Booleans so many BOOLEANS, i created one of these games awhile back, i swear i had over 400 booleans or something absurd like that, and keeping track of them all was just nuts...
I think the best way to go around doing this is arrays, and your thinking arrays ZOMFG?!!
Yes arrays, arrays can hold variables...
For instance
var simpleArray:Array = new Array(lol= false);
if(simpleArray[0] ) {
trace("LOL")
}
else{
trace("aww");
}
Then if you wanted to optomize you would create a variable above it and then state what it is...
IE:
var lol:Boolean;
var simpleArray:Array = new Array(lol= false);
if(simpleArray[0] == false) {
trace("LOL")
}
else{
trace("aww");
}
That's the more efficient way to do it.