Random
BlockNext, you'll add blocks so that every time Alonzo is clicked, he moves to a random position on the stage.
random
block report? Right now, the Snap! stage (the white rectangle where sprites act out their scripts) doesn't show axes or grid lines, but locations on it are still specified by coordinates. The center of the stage is (0, 0), and the stage runs from x = -240 to x = 240 and from y = -180 to y = 180.
Why limit Alonzo's moves between -190 and 190 in the x direction and between -130 and 130 in the y direction? So that he stays completely visible on the stage.
The Snap! stage (the white rectangle where sprites act out their scripts) has coordinates. The x axis shows from -240 to 240, and the y axis shows from -180 to 180.
You don't have to make your stage look like this picture. But if you want to, click the Stage thumbnail picture in the lower right, choose "Backgrounds..." from the Snap! file menu, and import "XY Grid". Then, turn on reporter watchers for x position, y position, and direction by clicking the checkboxes beside them in the blue Motion palette on the left.
On this page, we let Alonzo move only between -190 and 190 in the x direction and between -130 and 130 in the y direction so he doesn't go off the edges of the stage.