Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. Knowledge Base
  3. 2D Blocks
  4. The "Stop ( )" Block

The "Stop ( )" Block

Scheduled Pinned Locked Moved 2D Blocks
1 Posts 1 Posters 11.3k Views
  • 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.
  • CreatiCodeI Offline
    CreatiCodeI Offline
    CreatiCode
    wrote on last edited by admin
    #1

     

    Prerequisite

    • Working with Blocks

     

    What is a Script?

    A script is simply a stack of blocks. There can be one or multiple scripts in a sprite’s code.

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/4c2cd2ab-63db-4bec-904f-b94ff82e62b2.PNG" width="650" style="">
     

    Description

    The “stop ( )” block is in the Control group. Depending on the option selected from the drop-down menu, this block can change its shape:
    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/893be72c-0d9c-4b78-bf37-b65cff9009dc.PNG" width="250" style="">

    “stop (all)” and “stop (this script)” are cap blocks while “stop (other scripts in sprite)” is a stack block.

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/6f93f8ed-0eb3-40da-a702-44897eb462a8.PNG" width="650" style="">
     

    How does this block work?

    The “stop ( )” block is used to stop some or all scripts in a project. Let’s look at each option below:

     

    Stop (all)

    The “stop (all)” option is used to stop all the scripts in the project. It has the same function as the red stop button. https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/e5eea585-4a41-4da4-9b07-4d74bf92c720.PNG" width="150" style=""> For example, you can use “stop ” when a game is over.

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/7b9d4081-005c-4235-9610-8ecc3a3958d4.gif" width="800" style="border-radius: 5px; border: 1px solid #29622d;">
     

    Stop (this script)

    The “stop (this script)” option is used to only stop the script in which the stop block is used.

    For Example: In the screencast below, when the timer value reaches 10, only the timer script stops, and the other script still keeps running.

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/94fdfb07-c7e4-453e-a249-4b7a03fcc2e9.gif" width="800" style="border-radius: 5px; border: 1px solid #29622d;">
     

    Stop (other scripts in sprite)

    This option is used to stop all the other scripts in the current sprite, except the script in which the stop block is used.

    In the example below, as soon as the timer value reaches 10, the other script in the sprite stops running.

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/af490152-0f8f-4d7d-a4c5-a188f214dd6b.gif" width="800" style="border-radius: 5px; border: 1px solid #29622d;">
     

    1 Reply Last reply
    0

    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
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode