#### Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

# How to make another actor move to the other direction of another actor?

Posts: 388Member, PRO

Just like the title says, How to make another actor move to the other direction of another actor?

I want my background to move to the opposite direction of the Actor and also make it move in a set percentage (say 10 percent) of the actor's speed, for example, if the Actor move toward the direction of 127 degrees at 130, I want the background to move exactly the opposite direction or angle at speed of 13.

Thanks A Lot!

• Posts: 47Member, PRO
edited February 2015

I assume you want this so that it looks like the actor is actually moving above the background. Like a plane moving in the sky. Is that right? If it is then you can just create a large background, fix the camera to the actor and move the actor and it will produce the same result.

If not, then you can create real attributes for the speed and angle that the actor is moving (for example actorSpeed and actorAngle).

Then in the formula box for the backgrounds movement, you can make it move at actorSpeed*0.10 (for 10 percent) at an angle of actorAngle-180

Hopefully this is what you mean.

Daniel

• Posts: 388Member, PRO

@Daniel543M said:
I assume you want this so that it looks like the actor is actually moving above the background. Like a plane moving in the sky. Is that right? If it is then you can just create a large background, fix the camera to the actor and move the actor and it will produce the same result.

If not, then you can create real attributes for the speed and angle that the actor is moving (for example actorSpeed and actorAngle).

Then in the formula box for the backgrounds movement, you can make it move at actorSpeed*0.10 (for 10 percent) at an angle of actorAngle-180

Hopefully this is what you mean.

Daniel

The last one is what i'm looking for and what I need, is there a way you can explain it a little bit more to a noob like me? I mean show an example of the code, at least show me the way, thanks.

• Posts: 388Member, PRO

Is this the kind of thing you're looking for?
I just tried something in ten minutes or what, so if you have any questions, just ask me!!

Exactly what I asked and looked for, this is awesome, thanks a lot for the help! Really appreciate it.

• Posts: 51Member

no thanks bro!!