Quote:
Originally posted by kyle0654
yep.
Also, the parts where you check stuff like this.dir=3 should be this.dir==3. Quick guide to where to use == as opposed to =:
if = is found inside:
if ()
while ()
or the second part of for ()
then use ==
otherwise, use =
|
But I remember trying to make a baddie, and it would change directions according to what ranges of a number a certain variable was in. I had used the same method before, but it didn't work in my baddie for some reason. I guess I'll have to look over it again.