Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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..
-
Use the profiler to see what is causing the stuttering.
-
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
-
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?
-
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