Scatter/es: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
| Line 22: | Line 22: | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
[[File:scatter_example.gif|alt=Scatter example gif|thumb]] | [[File:scatter_example.gif|alt=Scatter example gif|thumb]] | ||
[[File: | [[File:create_each_do_example.png|alt=Scatter example code|thumb]] | ||
</div> | </div> | ||
Latest revision as of 15:28, 16 August 2023
dispersar es un bloque de código parte del cajón agentes.
scatter is a code block part of the agents drawer.
Uso
dispersar se utiliza para dispersar un agente a una ubicación aleatoria en SpaceLand.
Sintaxis
dispersar
Example
The scatter block assigns a random location to each agent who calls scatter. Note that this will not assign a random Z value. Note that the ‘delete everyone,’ ‘create each do,’ and ‘set my to’ blocks instruct The World to carry out the desired commands.
Cosas tener en cuenta
Una diferencia importante entre dispersar y dispersar todos es eso dispersar todos dispersa a todos los agentes en SpaceLand a lugares aleatorios. Dispersar sólo dispersa los agentes creados por el crear [_] [▼](s) o crear [_] [▼](s) cada uno hacer bloque en el que dispersar se colocó el bloque.
Bloques relacionados