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

Dell7730Dell7730 Member, PRO Posts: 388

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!

Best Answer

Answers

  • Daniel543MDaniel543M Member, PRO Posts: 47
    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

  • Dell7730Dell7730 Member, PRO Posts: 388

    @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.

  • Dell7730Dell7730 Member, PRO Posts: 388

    @nickname5862 said:
    https://www.dropbox.com/sh/guy5dupr9s5iq45/AABO_2T0cUdGX2y7y7yJPpq5a?dl=0

    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.

  • nickname5862nickname5862 Member Posts: 51

    no thanks bro!!

Sign In or Register to comment.