Delete Everyone/en: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 17: | Line 17: | ||
[[File:delete_everyone_example.gif|alt=Delete Everyone example gif|thumb]] | [[File:delete_everyone_example.gif|alt=Delete Everyone example gif|thumb]] | ||
[[File: | [[File:create_example.png|alt=Delete Everyone example code|thumb]] | ||
Each time that setup is pressed, The World deletes all other agents. This ensures that each time a new set of agents is created, the population does not continue to increase. Using the delete everyone block enables the ‘setup’ button replicate the behavior of a project loaded for the first time. | Each time that setup is pressed, The World deletes all other agents. This ensures that each time a new set of agents is created, the population does not continue to increase. Using the delete everyone block enables the ‘setup’ button replicate the behavior of a project loaded for the first time. |
Latest revision as of 15:28, 16 August 2023
Deletes everyone including itself. *The World cannot delete itself.
delete everyone
is a code block part of the agents drawer.
Usage
delete everyone
is used to delete all agents from Spaceland.
Syntax
(in reference to every agent) delete everyone
Example
Each time that setup is pressed, The World deletes all other agents. This ensures that each time a new set of agents is created, the population does not continue to increase. Using the delete everyone block enables the ‘setup’ button replicate the behavior of a project loaded for the first time.
Nuances
Code may be placed after this block as this block can be used to delete all agents under the world tab.