STEP 4: We'll use some stage physics from the GRAPHICS tab to create movement for our characters.

The set gravity command makes objects on the stage fall. The number in the command controls how quickly objects will fall. Disable walls lets objects leave the stage instead of bounce off of the sides.

  • Click on . Drag out Set Gravity. Change the integer to 6.
  • From , drag Disable Walls into your program.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)