move to

Game Editor comments and discussion.

move to

Postby BogdansB » Wed Jan 18, 2012 5:53 pm

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 ?
BogdansB
 
Posts: 94
Joined: Tue Oct 25, 2011 2:30 pm
Score: 0 Give a positive score

Re: move to

Postby Fojam » Wed Jan 18, 2012 6:08 pm

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.
CLICK TO GIVE ME POINTS

My Latest Projects:
Super Smash Bros: viewtopic.php?f=6&t=12307 PLEASE help by making sprites!
User avatar
Fojam
 
Posts: 513
Joined: Thu Mar 19, 2009 10:02 pm
Location: under your bed!!!
Score: 69 Give a positive score

Re: move to

Postby BogdansB » Wed Jan 18, 2012 6:22 pm

ok thanks i will try :D
BogdansB
 
Posts: 94
Joined: Tue Oct 25, 2011 2:30 pm
Score: 0 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest