Page 1 of 1

Moveto (x,y)

PostPosted: Sat Feb 18, 2006 8:05 am
by Troodon
:?:
Can I make one actor to move towards another actor only in one axis. (for example in x)

PostPosted: Sat Feb 18, 2006 10:36 am
by Fuzzy
Yes. Just use one of your actors axis'. I am unable to say how you'd pick one, perhaps move along the axis that has the largest difference?

PostPosted: Sat Feb 18, 2006 1:28 pm
by Troodon
So there is no way to do it? :cry:

PostPosted: Sun Feb 19, 2006 7:01 am
by Fuzzy
yes there is. use moveto(player.x,target.y)

PostPosted: Sun Feb 19, 2006 7:08 am
by Troodon
Thank you!!!!

PostPosted: Sun Feb 19, 2006 7:20 am
by Troodon
What I write in the code? I tried something like this:
I tried to wrote:MoveTo("Event Actor.x", 0.000000, 0.000000, 2.000000, "salad.y");

It's not working.

PostPosted: Sun Feb 19, 2006 9:11 am
by twobob
The following script is for actor ball to move to the actor goal x axis
MoveTo("ball", ball.x, goal.y, 3, "Game Center");

If you want to move ball to goal y axis
MoveTo("ball", goal.x, ball.y, 3, "Game Center");

PostPosted: Sun Feb 19, 2006 10:03 am
by Troodon
Ok. Thanks!