Moveto (x,y)

Non-platform specific questions.

Moveto (x,y)

Postby Troodon » Sat Feb 18, 2006 8:05 am

:?:
Can I make one actor to move towards another actor only in one axis. (for example in x)
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Fuzzy » Sat Feb 18, 2006 10:36 am

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?
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

Postby Troodon » Sat Feb 18, 2006 1:28 pm

So there is no way to do it? :cry:
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Fuzzy » Sun Feb 19, 2006 7:01 am

yes there is. use moveto(player.x,target.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

Postby Troodon » Sun Feb 19, 2006 7:08 am

Thank you!!!!
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Troodon » Sun Feb 19, 2006 7:20 am

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.
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby twobob » Sun Feb 19, 2006 9:11 am

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");
twobob
 
Posts: 33
Joined: Sat Sep 10, 2005 10:29 am
Location: England
Score: 2 Give a positive score

Postby Troodon » Sun Feb 19, 2006 10:03 am

Ok. Thanks!
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest