I recently learned, from a
bug report of all things, a really neat trick to use very relatively few lines of code to have a character move in the direction it's oriented toward. It's demonstrated in this loop and works because of cool math, and is way more efficient than my old way of having a Label for each individual direction I want a character to be able to move in:
Click here to view the secret text
×Label Loop
Set var "_MyScriptX" = (_MyO % 3) - 1
Set var "_MyScriptY" = (_MyO / 3) - 1
Move 0,0,0,0
Set var "_MyScriptX" = -9999
Set var "_MyScriptY" = -9999
Wait 0
Go to Loop
This got me curious, what other neat scripting tricks are there that aren't too well-known, or at least not mentioned in prominent places? Have you figured out any nifty script shortcuts that do things faster than the more obvious way?
____________________________
109th Skywatcher
Here are some links to Things!
Click here to view the secret text