- Home /
Runner 2D: Move Camera or Objects?
I want to make a 2D runner (like Zombie Tsunami) and I need to know the approach of the movement. Should I move the camera forward, or should I move the objects backwards, or is the same? As the target is mobile, Im looking for the cheaper CPU consuming option.
Without any advanced knowledge I'd guess that moving the camera would be less expensive - since you'd be moving fewer transforms around.
Answer by Gf15a4 · Jan 16, 2015 at 03:05 AM
You definitely need to move the camera. I work in openGL and game engines work by moving all the objects instead of the camera as it is (illusion) of movement. By moving all of the objects, your basically reversing the method which would be terrible. Moving one transform at a time is also a major increase over moving everything.
Brett