Page 1 of 1

Night of horror help topic

PostPosted: Wed Oct 13, 2010 9:31 pm
by zxcvbnm
Ok just run the game and the actor will move right and left on his own. 1st step to developing enemy AI

Re: Night of horror help topic

PostPosted: Wed Oct 13, 2010 10:32 pm
by jimmynewguy
finding direction - next step

Re: Night of horror help topic

PostPosted: Thu Oct 14, 2010 11:51 am
by lcl
Hey jimmy, I want to ask about the code you used.
That line:
Code: Select all
int result = (player.x<x);

Does this line make integer called result equal to 0 when it's not true and 1 when it's true? :D

Re: Night of horror help topic

PostPosted: Thu Nov 18, 2010 1:26 am
by jimmynewguy
:oops: never noticed this until now...sorry. The answers yes if you never figured it out :P

Re: Night of horror help topic

PostPosted: Thu Nov 18, 2010 2:43 pm
by lcl
Yeah, I was nearly sure just wanted to ask. :D Thanks! :D