Hey, guys. I'm trying to set up physics for a simple platformer using Fizzy. I created a Rectangular DynamicObject to represent my player, and turned on a small gravitational force. At the moment, I'm having the game apply "forces" to the object in the update method based on which of the arrow keys I'm holding down. Here's the weird thing: when I start the game, the player sprite falls to the nearest solid surface and stays there, but if I push him back up (applying a vertical force) he'll hang in the air. It's only when I apply a horizontal force of some kind (make him move left or right) that he actually falls again. Do any of you know why this might be happening?
|