Document.png Please expand this article by adding more types of mouse trails. You can help by adding more information if you are an editor. More information might be found in a section of the talk page. (January 2017)

Mouse trails are trails of any shapes that follow the mouse pointer around the screen. They are usually used in projects just for fun, or decoration. Usually mouse trails use the Looks Blocks and/or Motion Blocks.

An example of a Mouse Trail project.

The Basics of Mouse Trails

Blocks

The most important blocks in Mouse Trails are the blocks that detect mouse movement.

point towards [mouse-pointer v]

go to [mouse-pointer v]
distance to [mouse-pointer v]

Sprite Mouse Trails

Choosing a sprite

Before you can start your mouse trail, you need to pick out a shape. It can be anything, but it shouldn't be too big. You can find some good sprites in the sprite library.

Base Scripts

Mouse trails are very editable. You can make the sprites do whatever you want. To begin to make a mouse trail, start with this script.

Note Note: This script is customizable. See Customizing for more information.
when gf clicked
go to [mouse-pointer v]
forever
create clone of [myself v]
point towards [mouse-pointer v]
move (distance to [mouse-pointer v]) steps
wait (0.001) secs
end

when I start as a clone
point towards [mouse-pointer v]
repeat (10)
change [ghost v] effect by (10)
end
delete this clone

See Customizing for help on editing this script. A project with sprite mouse trails can be found here.

Pen Mouse Trails

The Pen blocks can be used to make mouse trails. To make a mouse trail drawn with pen, use these scripts:

Note Note: This script is customizable. See Customizing for more information.
when flag clicked
forever
clear
wait (0.01) secs
end
when flag clicked
pen up
set pen color to [#FF0000]
hide
point in direction (90 v)
forever
go to [mouse-pointer v]
create clone of [myself v]
change pen color by (10)
end
when I start as a clone
set pen size to (10)
repeat until <touching [edge v]>
pen up
move (10) steps
pen down
end
delete this clone

See Customizing for help on editing this script. Some of the dots might stay on the project until they touch a corner. A project with a pen mouse trail can be seen here.

Customizing

Try changing the values around and colors, and see what you like, or add a

pick random () to ()

block instead of numbers. Maybe try a

turn cw (42) degrees

somewhere in between, or use a

change [color v] effect by (23)

or choose other graphic effects or put in your own ideas.