Motion Operators

The dimension of Motion Operators measures the use of movement operators in your projects. These operators are essential for controlling the motion and positioning of sprites in Scratch. Effective use of motion operators allows you to create dynamic and engaging animations and interactions in your projects.

If you get 1 point...

At the most basic level, you can use operators to move a sprite along the X and Y axes. These basic movement blocks allow you to control the position of a sprite on the screen. Here's a simple example of how these blocks can be used:

                    when green flag clicked
                    go to x:(0) y:(0)
                    move (50) steps
                    go to x:(-50) y:(50)
                    move (-30) steps
                    go to x:(0) y:(0)
                

In this example, the sprite moves to different positions on the screen by setting its X and Y coordinates and moving a certain number of steps. This demonstrates basic movement along the X and Y axes.

If you get 2 points...

Moving beyond basic X and Y movement, you can also control the angular movement of a sprite. This includes rotating the sprite by a certain number of degrees. Here's an example of using angular movement blocks:

                    when green flag clicked
                    go to x:(0) y:(0)
                    point in direction (90)
                    move (100) steps
                    turn cw (90) degrees
                    move (100) steps
                    turn ccw (180) degrees
                    move (100) steps
                

In this example, the sprite starts at a specific position, points in a given direction, and moves while turning at different angles. This demonstrates basic angular movement and rotation.

If you get 3 points...

To create smooth and controlled motion, you can use the glide blocks to move a sprite over a specified time period. This allows for more precise control over the sprite’s movement. Here's an example:

                    when green flag clicked
                    go to x:(-150) y:(0)
                    glide (1) secs to x:(-100) y:(0)
                    glide (0.75) secs to x:(-50) y:(0)
                    glide (0.5) secs to x:(0) y:(0)
                    glide (0.25) secs to x:(50) y:(0)
                    glide (0.1) secs to x:(100) y:(0)
                

In this example, the sprite gradually glides from left to right across the screen, with the speed of the glide increasing over time. This demonstrates how to control speed using glide blocks for a more dynamic effect.

If you get 4 points...

For more complex motion, you can combine various movement blocks to create intricate movement patterns. This involves using multiple movement instructions to achieve a more dynamic and engaging result. Here's an example of a complex movement sequence:

                    when green flag clicked
                    repeat (4)
                    move (100) steps
                    turn cw (90) degrees
                    repeat (2)
                    glide (1) secs to x:(pick random (-100) to (100)) y:(pick random (-100) to (100))
                    end
                    end
                    glide (1) secs to x:(0) y:(0)
                

In this example, the sprite first performs a square movement pattern and then glides to random positions within the screen. The use of nested repeat blocks and glide instructions creates a dynamic and varied movement sequence.