Archive.png This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective.

The Draggable Sprite feature in Scratch was a tool that makes a sprite draggable online without need for scripting. It was removed in Scratch 3.0, due to the new set drag mode [ v] block.


The area that was clicked to toggle the feature on and off.
The tool is turned off by default. To turn it on, one looked in the sprite pane, clicked the "i" by a sprite, then clicked the checkbox, as shown at the left.

While it is easy to access, many Scratchers would like it to be more visible.[1]


Sometimes, it was necessary to have a sprite that is only draggable sometimes or drags in a special way. Scripts can be used to make a sprite draggable and are much more flexible than the Draggable Sprite feature. One script that can be used to make a sprite draggable is this:

when this sprite clicked
repeat until <not <<mouse down?> and <touching [mouse-pointer? v]>>
 go to x: (mouse x) y: (mouse y)

However, this will make the sprite the cursor is dragging snap to the center. In order to drag a sprite relative to where the cursor is, use this script:

when flag clicked
 if <<touching (mouse-pointer v)> and <mouse down?>> then
  set [offset x v] to ((x position)-(mouse x)
  set [offset y v] to ((y position)-(mouse y)
  repeat until <not <mouse down?>>
   go to x: ((mouse x)+(offset x)) y: ((mouse y)+(offset y))

The Set Drag Mode () released in 3.0 made it possible to set the drag mode using a single block.

Example Uses

The tool had many uses, the most popular of which were:

  • Quicker project testing
  • Reduced scripts (very useful in One Sprite One Script Projects)
  • "Drag and drop" games
  • Paint projects where a paintbrush, pen, or pencil was moved around
  • Dress-up and makeup projects
  • Customization projects, such as scene creators


  1. post:1598594