Page 1 of 1

move to

PostPosted: Wed Jan 18, 2012 5:53 pm
by BogdansB
hello ,

i want to make an actor fallow a point where you clicked with the mouse so the actor goes from a player to this point and so on, but with the same speed, like a shot . how can i make it ?

Re: move to

PostPosted: Wed Jan 18, 2012 6:08 pm
by Fojam
well you have to make a filled region actor that fills the whole screen, then make a mouse button down event. for the action, open the script editor, and do a MoveTo function. for the actor slot, select the name of the actor you want to move. for the relative spot, select game center. then for the x spot fill in 1 and for the y spot fill in 2. then click ok.
when it writes the code, replace 1 with xmouse and replace 2 with ymouse. then click add, then immediate action, then close. now it should work.

Re: move to

PostPosted: Wed Jan 18, 2012 6:22 pm
by BogdansB
ok thanks i will try :D