Targeting Camera or Fight Game Camera?

ozz

  • *
  • Posts: 575
  I'm trying to alter may Camera (current behavior below) to be able to keep both the Player Actor and Boss Actor in the frame.  Any idea how I could make that adjustment?

merrak

  • *
  • Posts: 2726
If you assume that both actors are within one screen of each other, you can take the average of their x,y coordinates and center the camera on that point. If they're too far apart, you can then move the camera to the player.

ozz

  • *
  • Posts: 575
Thank you Merrak, I'll try that.

ozz

  • *
  • Posts: 575
 Wow, that worked great.  Thanks.