forked from scratchfoundation/scratch-gui
-
-
Notifications
You must be signed in to change notification settings - Fork 169
Script Flags
GarboMuffin edited this page Jul 15, 2021
·
10 revisions
This page has moved to https://docs.turbowarp.org/script-flags
TurboWarp lets you control how your scripts are compiled through "Script Flags". These are comments attached to the hat block of a script that start with tw
.
This is what they look like:
- The comment does not need to be on the first line, but it does need to be on its own line. That means pressing enter to push it onto its own line, not just relying on the comment to wrap text around (if unsure, resize the comment a few times and make sure it always stays on its own line)
- The comment must be attached to the hat block of a script, for example "when green flag clicked" or "define procedure". Adding it to the first block in the script or any other block in the script will not work.
- The comment is case sensitive.
Adding this comment to a script will make it use Warp Timer/Stuck Checking regardless of whether the stuck checking global option is enabled or not.
Adding this comment to a script will cause it to not be compiled.
When one procedure used by a script cannot be compiled, the entire script will not be compiled.
This is intended as a debugging tool. If you use this to workaround a compiler bug, please make sure to report the bug so it can get fixed.