Go To (Object) Block
-
Prerequisite
Description
The “Go to (object)” block is a stack block in the motion category.
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/70b9d80b-fa30-4a21-82c4-623bd543ac4c.PNG" width="550" style="">
How does this block work?
This block can move the current sprite in three different ways: “Go to (random position)”, “Go to (mouse-pointer)” and “Go to (a sprite)”.
You can choose the movement option for your sprite by clicking on the drop-down menu.
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/d1531713-8cf6-4a67-850a-2b4b6274a25e.PNG" width="250" style="">
Go to (random position)
When the “random position” option is selected, this block will move the current sprite to a random position on stage. That means, whenever this block is played, the sprite may appear anywhere on the stage.
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/64be5355-f58d-4b9e-baa4-2f2938ee8964.gif" width="800" style="border-radius: 5px; border: 1px solid #29622d;">
Go to (mouse-pointer)
Go to (mouse-pointer) is used to move the current sprite to the mouse pointer’s position.
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/f294700d-1a5b-4102-9bef-eb17903737be.png" width="80" style="">
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/af92cec4-ee95-4558-a988-ca19f97735f5.gif" width="800" style="border-radius: 5px; border: 1px solid #29622d;">
Go to (sprite)
This block is used to move the current sprite to the same X and Y positions as the selected sprite.
Note: You need more than one sprite in your project to use this block.
For example, we can use it to make the basketball move to the same place as the soccer ball. Note that their centers will be aligned.
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/69f97f06-0b62-456c-802c-4ac22f35a448.gif" width="800" style="border-radius: 5px; border: 1px solid #29622d;">
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login