Pan the camera to specific actor?

NtGNtG Member Posts: 103
edited November -1 in Working with GS (Mac)
How would i go about making it so that when i click on an actor the camera moves and centers that actor?

The only thing i can think of is having another actor thats invisible that moves to the actor and the camera follows the invisible actor. is there anything simpler than that or is that as simple as it gets?

Comments

  • NtGNtG Member Posts: 103
    thanks! i already have the camera offset in my game (i have a "look around" button), so this should be quite simple.
  • NtGNtG Member Posts: 103
    Hey, i got a follow up question to this. Its working great except for if the actor is close to the border of the scene. When the actor is close to the border then the camera shows the area outside of the playing area. Do you know of anyway i could fix this? I have the camera set to the smallest tracking area (i would prefer to keep it that way). Let me know if i need to elaborate more.
  • NtGNtG Member Posts: 103
    instead of interpolating the origin, would it be better to interpolate the tracking area and use a control camera behavior?
Sign In or Register to comment.