move back () steps

From PenguinMod Wiki (Official)
Revision as of 15:17, 25 August 2024 by MediansSC (talk | contribs) (Replacing images with scratchblocks, and adding a category.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Move back () steps
Jump to navigation Jump to search

The move back () steps block is a stack block and a motion block. This block acts like the move () steps block, but goes in the opposite direction. The default value is 10, just like the move () steps block.

Workaround

Putting a negative number in the move () steps block achieves the same effect:

move ((-1) * (number::grey)) steps

move ((0) - (number::grey)) steps

A workaround similar to the standard move () steps block can also be used, with subtraction instead of addition:

go to x: ((x position) - (([sin v] of (direction)) * (steps::grey))) y: ((y position) - (([cos v] of (direction)) * (steps::grey)))