Got a few questions.
Posted: 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?
Then under any key down, left for example,
After you hit the speed booster, a timer goes off for the duration of speed boosts life and then Speed would increase.
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;