Mimic MOVE TO without using MOVE TO behaviour!!!

Hi.
I like the MOVE TO (when it works) behaviour in that i can tell an actor to move to x y but i want
to do this another way perhaps using motion linear or change velocity however im having problem
tell the actor to stop at an x y pos.
what am i missing.
any help would be appreciated.
cheers
I like the MOVE TO (when it works) behaviour in that i can tell an actor to move to x y but i want
to do this another way perhaps using motion linear or change velocity however im having problem
tell the actor to stop at an x y pos.
what am i missing.
any help would be appreciated.
cheers
Comments
It sounds like you should be using Move To. It's difficult to determine what you should be doing without some more info. What are the controls for moving the character? Are you using D-Pad/Joystick or Touch screen to move? Is the actor to move on it's own?
You can accomplish it with motion linear. You will just have to set it up so that when the actor reaches the X,Y you want that motion linear is set to 0. How exactly is Move To not working the way you want?
Change attribute . Self.LinearVelocity X to 100
When self.position X ≥ 300 change attribute self.LinearVelocity X to 0
That's it. It's what I do.
i like the slide in slide out thing about it.
FallacyStudios - MOVE TO behaviour is a broken one in that sometimes it works by stopping at desitination and sometimes flies off screen (its been a long outstanding bug from GS).
Ozboybrian - i will try your way and see how it goes.
many thanks gents for your immediate replies.
Ya I rarely use Move To so I haven't seen that error myself. Ya if you do what oz said you should get what you are looking for.
EDIT: John beat me to it