- This tur is about the block. For more information on the value this block reports, see Direction (value).
Point in Direction () block.
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 be replicated by finding the direction value from the () of () sensing block:
([direction v] of (sprite v))
- Direction (value)
- Point in Direction ()
- Point Towards ()
- Turn () Degrees
- Set Rotation Style () (block)