Movement Word Physics
Acceleration and Friction
Now that you have the basic controls, it’s time to use math and physics to add rules and laws to our land in the game. Using math formulas and equations, we can cause our character to accelerate when he’s walking and decelerate if we let go of the keys using the formula below.
Use the left and right arrow keys to cause the character to move. If it’s not working, please click on the stage first to activate the controls.
You need Adobe Flash Player to view this content.