Delete Agent
Deletes the specified agent (use "collidee", "nearest", or "my parent" blocks).
delete agent [_]
is a code block part of the agents drawer.
Usage
delete agent [_]
is used to delete a specific agent from Spaceland.
Syntax
Inputs in this block:
- block that represents an agent (e.g. me, my parent or nearest)
delete agent [Special: Agent Reference]
Example
When a red block collides with a blue block, from the red block’s perspective the blue block is the collidee. Following a collision, the delete agent block allows for the red block to delete the blue block. This organization mirrors the physical behavior of how the predator eats the prey.
Related Blocks
Note: Using the me block inside delete agent will produce the same behavior as using the delete block, which makes any agent following the instructions delete itself.