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

Game Editor comments and discussion.

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

Postby kyensoftware » Sun Dec 03, 2006 4:11 am

are moving on a path? :? :?:
User avatar
kyensoftware
 
Posts: 198
Joined: Thu Oct 26, 2006 7:49 am
Score: 5 Give a positive score

Postby Fuzzy » Sun Dec 03, 2006 6:01 am

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
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

umm

Postby kyensoftware » Sun Dec 24, 2006 5:25 am

ummmmm.........
Can't quite get it to work can you give me the the code for it thanx 8)
User avatar
kyensoftware
 
Posts: 198
Joined: Thu Oct 26, 2006 7:49 am
Score: 5 Give a positive score

Postby Sgt. Sparky » Sun Dec 24, 2006 7:17 pm

: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:
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest