STEP 6: Now let's create an event that will change both shapes sizes every time you move the mouse!

  • In the GRAPHICS tab, click on .
  • Drag out Move Mouse. Drop it at the bottom of your program.
  • Find and delete sprite.set_position(x,y)¬ or you will get an error since there is no variable sprite!

We now have two variables (x and y) that are equal to the mouse's x and y-position on the stage!

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)