Event disable
Posted: Fri Jan 11, 2008 3:45 pm
Hi!! I wanted to ask a question:how to make that even if we put the event disable action,we will be just be able to walk,not else,not more??
if(canwalk ==1)
{x +=3;}
if(canwalk==1)
{
if(right==1)
{
x+=3;
}
if(right==0)
{
x-=3;
}
}
if(canwalk==1 && right ==1) { x+=3; }
if(canwalk==1 && right ==0) { x-=3; }
if(canwalk==1&&right ==1){x+=3;}if(canwalk==1&&right==0){x-=3;}
if(c==1&&r==1){x+=3;}if(c==1&&r==0){x-=3;}
tekdino wrote:What about me??
Ok, Bee-Ant code was 11 lines. This makes the same thing but is only 2 lines.
- Code: Select all
if(canwalk==1 && right ==1) { x+=3; }
if(canwalk==1 && right ==0) { x-=3; }