Got a few questions.

Non-platform specific questions.

Got a few questions.

Postby NightOfHorror » Tue May 01, 2012 8:26 pm

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;
viewtopic.php?f=2&t=12136
"I have not failed. I just found 10,000 ways that wont work." quoted by Thomas Edison.
Over the year, I decided my motto for me is I am knowledgeable, but not practical.
User avatar
NightOfHorror
 
Posts: 1823
Joined: Fri Aug 27, 2010 2:50 am
Location: Cedar Hill, MO, of the USA
Score: 51 Give a positive score

Re: Got a few questions.

Postby skydereign » Tue May 01, 2012 9:40 pm

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest