Community

Walls Help

Posted Sep 7, '08 at 4:34am

Captain_J_Sheridan

Captain_J_Sheridan

143 posts

Gold - Serf

You just got a ) at the wrong place

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

Maaron

45 posts

Iron - Serf

What the hell is "trace" for.

 

Posted Sep 8, '08 at 4:46am

Captain_J_Sheridan

Captain_J_Sheridan

143 posts

Gold - Serf

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!")
}

 

Posted Sep 8, '08 at 5:04am

Maaron

Maaron

45 posts

Iron - Serf

Ok I understand btw are you ever not logged into armor games lol

 
Reply to Walls Help

You must be logged in to post a reply!