Page 1 of 1

Got a few questions.

PostPosted: Tue May 01, 2012 8:26 pm
by NightOfHorror
Okay, is there a way to make an actor follow another actor on how it moves?
ex. I run down two lines down in the x-coordinate plane, than turn turn and walk five lines across left in the y-coordinate plane. Then the follower were moves the same way. Also, if it didn't start at same position as you, would that still work? Next, I want to have a speed power-up. What I need is the actor to collide and he goes faster. Would this require a variable like this?
Code: Select all
Global code ->
int Speed=5;


Then under any key down, left for example,
Code: Select all
keydown->left->script->
x-=Speed;


After you hit the speed booster, a timer goes off for the duration of speed boosts life and then Speed would increase.
Code: Select all
Collision->any side of actor->
Speed=Speed+5;

Re: Got a few questions.

PostPosted: Tue May 01, 2012 9:40 pm
by skydereign
Not really sure how lines are a unit of measure, but you just want an actor to move towards another one? If so, you can use MoveTo for that. If however you mean for one actor to chase another (following the same path), that can be a little more difficult.