2.3.4 The “Glide to x-y” Block ⭐

View

2.3.4 The “Glide to x-y” BLOCK

The glide block is a motion block that allows a sprite to move steadily from one place to another. With glide blocks, you can move your character or sprite from places to new positions on the stage as you like. You can set the speed and the direction of the sprite movement using the glide blocks.

 


Activity: Moving a sprite using motion block

Step1: Place your sprite at any position and go to the glide block in the motion folder.

Step2: To glide, set a location where you want your sprite to move to, drag the sprite to that new location and drag out another glide block and put it just under the first block.

Step3: To set a starting point, place the character where you want to start, and drag out a “Go to” block and put it on top. Finally, add a green flag on top to start the script

Follow this link to get a hint.

 

Activity: moving a sprite using XY position

Step 1:
Choose a sprite, and use the glide blocks, make it move from (x:-117, y: 2) to (x: 122, y: 9) then to (x:-122, y:-70) and back to (x:-117, y: 2). Note that each move should have 3 seconds. Save your work. Follow this link to get a hint.

Step 2:
Choose the Ballerina Sprite as shown below and place it on the stage wherever you want. Make the sprite jump up from the original position and back to its original position using the Glide blocks. Save your work.

Figure 65: Sprite to move using XY glider

Use this link to get a hint.

Last modified: Friday, 24 September 2021, 4:34 PM