Empty Condition

From AgentSheetsWiki

Revision as of 17:54, 19 April 2012 by Repenning (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Empty.png

Empty expanded1.png

Definition: Check in a certain direction to see if that cell exists and is empty. Typically this is used to make sure you can move into a cell. All the cells beyond the edge of the world are considered NOT empty. That is you could NOT move there.
Parameters: direction the direction in which you check if there is an empty cell
layer relative layer reference: 0 = same layer, > 0 layers above, < 0 layers below
Example: move right if you can: IF empty(right) THEN move(right)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox