I’m working on a platform type game where the player is always running forward. Like Badlands, Punch Quest, Robot Unicorn Attack etc. I’m using Physics for platforms and collisions.
What’s the best method to move the character forward? Here’s the choices I came up with:
- enterFrame applied to x
- body:applyForce()
- body:setLinearVelocity()
- body:applyLinearImpulse()
Out of these setLinearVelocity() has worked the best.