- This eng is about the block. For more information on the value this block reports, see Direction (value).
As this block contains a sprite's direction, it is often used to help scripts that point sprites around.
Specifically, the block can be used to:
- Simply sense a direction
say (join [I am pointing in direction: ](direction))
- Check the direction of an arrow sprite
say (join (join [You need to head in the direction ](direction))[º to find the treasure.])
- Check alignment
Here is an example use of the direction block:
when I receive [Check v] if <(direction) = > then set [Safe? v] to 
This script will check if its sprite's direction is 50.
- Main article: List of Block Workarounds
The block can simply be replicated with the following code:
([direction v] of [wanted sprite v])
- Direction (value)
- Point in Direction ()
- Point Towards ()
- Turn () Degrees
- Set Rotation Style () (block)