Click or drag to resize
SpriteBaseBlocked Method
Determines if the sprite is blocked from moving freely in a particular direction by solidity on the layer.

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public virtual bool Blocked(
	SpriteBaseDirection Direction
)

Parameters

Direction
Type: (Default Namespace)SpriteBaseDirection
Which direction should be tested

Return Value

Type: Boolean
True if the sprite's velocity will be affected or stopped when attempting to move in the specified direction. False if the sprite can move freely in that direction.
Remarks
Note that this function only tests if there is any solidity in the specified direction, but does not indicate whether the sprite will be blocked by it or simply deflected (up or down a hill) by it.
See Also