Navigation

    CreatiCode Scratch Forum

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

    "Glide () seconds to (object)" Block

    2D Blocks
    1
    1
    309
    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 “Glide () secs to (object)” block is a stack block in the Motion category.


       

      How does this block work?

      This block moves (drags) the current sprite on stage in the given number of seconds.

      There are 3 different movement targets you can select from the drop-down menu: “random position”, “mouse-pointer” and “sprite”.

      Glide () secs to (random position)

      When the “random position” option is selected, this block will move the current sprite to a random position on stage smoothly within the number of seconds in the input.

      You can increase the number of seconds, so the sprite will move slower; you can also decrease the number of seconds to move it faster.


       

      Glide () secs to (mouse-pointer)

      When the “mouse-pointer” option is selected, the current sprite will glide towards the mouse-pointer’s position.


       

      Glide () secs to (sprite)

      When the “sprite” option is selected, the current sprite will move gradually to the same position as the selected sprite within the number of seconds specified.

      As shown below, the “Mouse” sprite moves smoothly to the “Bread” in an animation:

       

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