Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: magarcan on November 29, 2012, 08:16:33 AM

Title: Problem with camera [SOLVED]*
Post by: magarcan on November 29, 2012, 08:16:33 AM
Hi!

My idea was use Smooth Follow Camera in my main camera in order to follow my character... the idea was ok, but in reality:

Are there any way to prevent camera rotation?

Cheers!

PD: link to reference (https://hutonggames.fogbugz.com/default.asp?ixWiki=1&pg=pgSearchWiki&qWiki=title:Smooth%20Follow%20Action) is not working.
Title: Re: Problem with camera
Post by: jeanfabre on November 29, 2012, 11:11:47 AM
Hi,

 you simply need to do the following:

 create a dummy gameObject. This dummy follows the position of your player, ONLY the position, then you have the camera to follow that dummy, and not your actual character.

bye,

 Jean
Title: Re: Problem with camera [SOLVED]
Post by: magarcan on November 29, 2012, 11:33:46 AM
I make that using Get Position and Set Position every frame. Is that the best way?
Title: Re: Problem with camera [SOLVED]*
Post by: jeanfabre on December 11, 2012, 05:36:02 PM
Hi,

 yep, that will do.

bye,

 Jean