Page 1 of 1

Is it possibel to have a peples turn to the direction they

PostPosted: Sun Dec 03, 2006 4:11 am
by kyensoftware
are moving on a path? :? :?:

PostPosted: Sun Dec 03, 2006 6:01 am
by Fuzzy
take a copy of the x and y for the actor at each draw event. call them oldx and oldy. compare them to the current x and y

draw event
1. compare x and y to oldx and oldy
2. set actor facing based on comparison
3. set oldx = x and set oldy = y

umm

PostPosted: Sun Dec 24, 2006 5:25 am
by kyensoftware
ummmmm.........
Can't quite get it to work can you give me the the code for it thanx 8)

PostPosted: Sun Dec 24, 2006 7:17 pm
by Sgt. Sparky
:idea: hmmm, :wink: since he has not replied it might be like:
Code: Select all
if (oldx > x)ChangePath("EventActor" , "Left");
and vice versa.
but i'm not quite sure :lol: :oops: Prob PM makslane bout' that. :D
I'm not a script expert. :oops: