|This article is a stub. It may be incomplete, unfinished, or have missing parts/sections. If the article can be expanded, please do so! There may be suggestions on its talk page. (May 2019)|
The script shown will render a rectangle using the pen extension.
It sets the pen to "down" (so it draws wherever the sprite goes) and moves a sprite - a very small dot to draw with the pen.
Pen tips and tricks
- The pen can be drawn when a sprite moves between 2 places using
go to x () y ()as if it is actually just moving very fast. You don't need to use
move () stepsto draw.
- Quick drawing is important, so you should add your pen script to a custom block that has "Run without screen refresh" checked. If the pen doesn't render quickly and you are making a game, the pen may not be able to keep up with the game.