How to change control camera from one actor to another?

How to change control camera from one actor to another?

I didn`t find any example.

Comments

  • BoomshackBarryBoomshackBarry Member Posts: 712
    edited May 2013
    You need to put your control camera behaviour inside a rule so that it only fires when the rule is true, rather than all the time. For example have a game attribute to hold which actor should be controlling the camera at any given time (let's call it cameraActor). Say you have 3 actors that need to share the camera, during the game play when you need to change the camera you can set game.cameraActor to 1,2,or 3, and then in each actor have a rule that says if game.cameraActor = 1(or 2 or 3 depending on which actor it is) control camera. So by just changing the game.cameraActor attribute the camera control will jump from actor to actor.

    Hope that makes sense :)
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

  • liviuliviu PRO Posts: 8
    @BoomshackBarry and @FryingBaconStudios thank you very much for your help!
    I made it!

    Have a great day!
Sign In or Register to comment.