06-20-2012, 03:35 PM
(06-20-2012, 02:14 PM)YinYin Wrote:(06-20-2012, 07:41 AM)Alblaka Wrote: Uhm, how do I tell the AI to WALK into a certain direction?if (self.state==0){left()}
We can only issue left() and right()... and without globals it's hard to make the AI only press it ONCE, exspecially since the self.left readers barely work.
Doesn't work if the char is moving on z axis, as well.
As well a normal AI is sort of never "standing around", but doing something, thus state==0 is rare if I don't enforce the AI to be idling. If I do, it would sort of result in 1-0-1-0-1 movement (1 tick moving, 1 tick state 0).
Too lazy to code that variant right now, but may that would still trigger running (as it's a double-tap into a single direction).
My Creations: (Click to View)
Return (String) System.getNewsOfTheDay();
Barely active, expect slow responses. If at all.
Greetz,
Alblaka

Chat

![[Image: t6w2rm.jpg]](http://i43.tinypic.com/t6w2rm.jpg)
![[Image: i1ee7t.jpg]](http://i50.tinypic.com/i1ee7t.jpg)
![[Image: awdm4y.jpg]](http://i48.tinypic.com/awdm4y.jpg)