playMaker

Author Topic: Camera to focus on object [SOLVED]  (Read 1385 times)

Maddy

  • Playmaker Newbie
  • *
  • Posts: 34
Camera to focus on object [SOLVED]
« on: July 03, 2020, 02:05:13 AM »
I'm using Lean Touch for pinching and dragging. HOG for mobile.

I have a hint button to highlight an object when the player is stuck.

My problem is, when the player is zoomed in or a different area is visible, how do I get the camera to focus on the hinted object if the hinted object is out of view?

Thank you for any help!
« Last Edit: July 04, 2020, 10:46:45 AM by djaydino »
I'm an artist with poor memory and brain fog trying to make a game. Please wish me luck! :-D

heavygunner

  • Sr. Member
  • ****
  • Posts: 344
Re: Camera to focus on object
« Reply #1 on: July 03, 2020, 02:08:13 AM »
Save hinted object in a variable.
Use "Smooth follow action" on camera and set hinted object as target

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: Camera to focus on object
« Reply #2 on: July 03, 2020, 02:12:38 AM »
Hi,

 I use Cinemachine a lot and it has all the feature to create complex camera movement, with rules such as what you are looking for, aiming on target objects, etc etc.

I would give it a go, it's very powerful indeed.

Bye,

 Jean

Maddy

  • Playmaker Newbie
  • *
  • Posts: 34
Re: Camera to focus on object
« Reply #3 on: July 04, 2020, 05:58:27 AM »
Thanks for your help heavygunner and Jean, Set Position seemed to work!   :D
I'm an artist with poor memory and brain fog trying to make a game. Please wish me luck! :-D