Home‎ > ‎

Gravity

You can simulate gravity and have objects (like the Player) naturally, fall on it's own. This results in a different type of interface. You have to keep the Player up all the time or it falls to it's death. You have to keep pressing the up-arrow key or use the space-bar to keep moving it up.

This is good for players that fly like planes, birds, rockets, etc and if the player falls to the ground, the game is over.

What we want to do is
 - if the user is pressing a button, then move the player up, else move the player down. The player is never standing still.

Add/replace the following code:

    if the keysdown() = 65362 then

...more to come
Comments