Eng:Direction (block)

The Direction block is a Motion block and a Reporter block. The block holds its sprite's direction, measured in degrees this direction value is what is used with the Point in Direction  block.

Example Uses
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: say (join [I am pointing in direction: ](direction)) say (join (join [You need to head in the direction ](direction))[º to find the treasure.])
 * Simply sense a direction
 * Check the direction of an arrow sprite
 * Check alignment

Here is an example use of the direction block:

when I receive [Check v] if <(direction) = [50]> then set [Safe? v] to [1]

This script will check if its sprite's direction is 50.

Workaround
The block can simply be replicated with the following code:

([direction v] of [wanted sprite v])