I've just started getting into Lua and LOVE. I've never used Lua before but I'm a big fan of JavaScript and Python - Lua reminds me of a combination of those two languages. Plus LOVE is really neat as well, especially the built-in physics. I've previously used PyGame and I think having physics provided is a big boon.
Anyway, speaking of physics, I thought a good first step to learning Lua and LOVE would be to program some platforming movement. I've setup 'the world' and created the body, attached the shape, got the ground as another shape to collide with. There's gravity, walking left, walking right and jumping. However, I'm confused as to why when ever I apply movement: walking or jumping, I find the new movement seemingly overrides the existing forces or velocity of the body. I'm not sure if the forces I'm applying are too strong? Or if I'm meant to be taking the existing speed into account when I apply new forces. I expected the physics engine to take care of that for me.
I've attached the existing code, sorry if the Lua code is hacky - I'm new to this!
Can anyone suggest why the movement is so jerky? [left and right arrow keys to move, space to jump]
PS: What's with the "obey" in everyone's avatars? Is it a requisite for using the forum?
![Very Happy :D](./images/smilies/ms-glad.png)