View Single Post
  #9  
Old 08-14-2001, 03:32 AM
Jerom Jerom is offline
Banned
Jerom's Avatar
Join Date: Mar 2001
Location: In a Trash Can
Posts: 3,708
Jerom is on a distinguished road
Send a message via AIM to Jerom
Re: Re: Re: Ok now why wont this work?

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.
Reply With Quote