Scatter/es: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
| Line 15: | Line 15: | ||
===Sintaxis=== | ===Sintaxis=== | ||
<code>dispersar</code> | <code>dispersar</code> | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Example== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
[[File:scatter_example.gif|alt=Scatter example gif|thumb]] | |||
[[File:scatter_example.png|alt=Scatter example code|thumb]] | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
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. | |||
</div> | |||
==Cosas tener en cuenta== | ==Cosas tener en cuenta== | ||
Revision as of 19:10, 11 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