New Action

From AgentCubes
(Redirected from New)
Jump to navigation Jump to search

New action.png

New action additional params.png

Definition: The New action: generates a new agent in the cell indicated with the shape selected.

direction: specifies where to create a new agent.

shape: specifies the type of new agent.

Additional Parameters: layer: specifies on which layer to put the new agent.
Example: In the Frogger game, the Tunnel agent generates new Trucks to its right, once every 0.6 seconds, with a 25% chance, as long as there is road where it is supposed to create the new car (to avoid piling cars on top of each other). New action example.png