Navigation

    CreatiCode Scratch Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode

    Go To (Object) Block

    2D Blocks
    1
    1
    453
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • info-creaticode
      CreatiCode last edited by admin

       

      Prerequisite

      • Working with Blocks

       

      Description

      The “Go to (object)” block is a stack block in the motion category.


       

      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.

      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.


       

      Go to (mouse-pointer)

      Go to (mouse-pointer) is used to move the current sprite to the mouse pointer’s position.


       

      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.

       

      1 Reply Last reply Reply Quote 0
      • First post
        Last post