Playmaker Forum

PlayMaker Help & Tips => iOS Help => Topic started by: fabmagic on June 06, 2012, 12:54:16 AM

Title: [SOLVED]camera problem help!
Post by: fabmagic 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
Title: Re: camera problem help!
Post by: jeanfabre 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
Title: Re: camera problem help!
Post by: jeanfabre 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
Title: Re: camera problem help!
Post by: fabmagic on June 14, 2012, 09:37:10 AM
I got it working
Title: Re: camera problem help!
Post by: jeanfabre on June 14, 2012, 10:31:10 AM
Good to hear!

Bye,

 Jean
Title: Re: camera problem help!
Post by: gamedivision on June 20, 2012, 08:04:54 AM

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


Thanks


I got it working