Community → Programming Help
Posted Sep 7, '08 at 4:34am
Captain_J_Sheridan
143 posts
You just got a ) at the wrong place
if(Key.isDown(Key.RIGHT) and ICanWalkRight == true) { }
if(Key.isDown(Key.RIGHT) and ICanWalkRight == true) {
}
Let me give an example without ( ), if you were checking two variables, it would be like this
if(Bat == true and Man == true) { trace("I'm Batman!") }
Posted Sep 8, '08 at 4:40am
Maaron
45 posts
What the hell is "trace" for.
Posted Sep 8, '08 at 4:46am
It shows a message on the Output window, its really useful to check if your events are happening and create debugs
Paste this code on Flash and test it to see what I mean
var Bat = true; var Man = true; if(Bat == true and Man == true) { trace("I'm Batman!") }
var Bat = true; var Man = true;
Posted Sep 8, '08 at 5:04am
Ok I understand btw are you ever not logged into armor games lol
You must be logged in to post a reply!