playMaker

Author Topic: [SOLVED]camera problem help!  (Read 5847 times)

fabmagic

  • Playmaker Newbie
  • *
  • Posts: 5
[SOLVED]camera problem help!
« on: June 06, 2012, 12:54:16 AM »
i want the camera to follow my player in 2d
the camera is orthographic
I'm using smooth follow but the cam rotates on x axis
how can i stop rotation
thanks
« Last Edit: June 14, 2012, 10:31:29 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: camera problem help!
« Reply #1 on: June 06, 2012, 03:16:43 AM »
Hi,

 What you need is the following:

 create an empty gameObject, make that empty gameObject follow your character.
for the camera, get the position of this dummy gameObject and set the camera position to be of that value. Then your camera will never rotate and be at the right position.

the other possibility is to reset the rotate value of the camera each frame.

 If you are having still problems with this, let me know, and I'll do a working example, but I'll leave you fiddle with this for a bit :) you are not far from the solution.

Bye,

 Jean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: camera problem help!
« Reply #2 on: June 14, 2012, 07:14:02 AM »
Hi,

 I looked at your problem, but what exactly do you mean when you say "I use smooth follow", are you using the component from unity or the playmaker action?

 and what type of controller are you using for your player, as it has an impact on the method to use in order to follow the player nicely.

bye,

 Jean

fabmagic

  • Playmaker Newbie
  • *
  • Posts: 5
Re: camera problem help!
« Reply #3 on: June 14, 2012, 09:37:10 AM »
I got it working

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: camera problem help!
« Reply #4 on: June 14, 2012, 10:31:10 AM »
Good to hear!

Bye,

 Jean

gamedivision

  • Full Member
  • ***
  • Posts: 227
Re: camera problem help!
« Reply #5 on: June 20, 2012, 08:04:54 AM »

Any chance you could share how you sorted that issue out.


Thanks


I got it working