Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Prototype_6492 on July 11, 2015, 02:48:37 PM

Title: Camera Stuttering/ Jittering Badly
Post by: Prototype_6492 on July 11, 2015, 02:48:37 PM
Any Help? The main camera seems to jitter and stutter pretty bad when running side to side. Im using the Platform 2D camera, but my game is 2D but with 3d objects and everything..
Title: Re: Camera Stuttering/ Jittering Badly
Post by: Splankton on July 12, 2015, 09:37:46 AM
Use the profiler to see what is causing the stuttering.
Title: Re: Camera Stuttering/ Jittering Badly
Post by: jeanfabre on July 12, 2015, 09:41:31 AM
Hi,

 the juttering is cause by the fact that the camera is following a target that is a physics gameobject, and when you do so, the camer must get the position on late update, not on update.

 use the "xxx" advanced ( set position advanced, or set position advanced for example) versions on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181) to rebuild your camera following behavior so that all movement happens on late update, then all will be smooth again.

Bye,

 Jean
Title: Re: Camera Stuttering/ Jittering Badly
Post by: Prototype_6492 on July 14, 2015, 05:17:28 AM
Hey Jean!


So i got the set position advanced, I just set it to an FSM on the camera with the 2D platform script, click use owner, every frame, and on late update?
Title: Re: Camera Stuttering/ Jittering Badly
Post by: jeanfabre on July 15, 2015, 11:04:42 AM
Hi,

 yes, late update is what you need
don't forget that you also need to get the position of your physics object on late update too, else that won' work, both the getter and the setter have to be on the late update for no stuttering.

 Bye,

 Jean