walk
Jump to navigation
Jump to search
walk is a ZZT-OOP command that makes an object move automatically, independent of conventional movement commands (#go, #try).
Once #walk is executed, the object will move in the specified direction on every cycle tick. If a walking object is blocked by an obstacle, it will send a thud message to itself, unless it's locked.
To stop walking, use #walk idle or #walk i.
Syntax
#walk <direction>
Notes
- Objects will not push other entities as a result of walking.
#walkoperates independently of other movement commands, so an object can appear to move diagonally by walking along one axis and using#goor#tryon the other.- flow refers to an object's current walking direction, and can be used in conjunction with Direction modifiers to steer it. For example,
#walk cw flowwill make an object turn clockwise. - Internally, ZZT object walking is implemented with two delta variables. Modifying these variables with an enhanced editor beyond the ranges of -1 to +1 will cause the object to skip across terrain.
| ZZT-OOP | |
|---|---|
| Prefixes |
|
| Messages | |
| Directions | |
| Flags | |
| Commands | |