Forward/es: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
(Updating to match new version of source page)
 
Line 30: Line 30:


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
[[File:forward_example.gif|alt=Forward example gif|thumb]]
[[File:while_toggled_example.gif|alt=Forward example gif|thumb]]
[[File:forward_example.png|alt=Forward example code|thumb]]
[[File:while_toggled_example.png|alt=Forward example code|thumb]]
</div>
</div>



Latest revision as of 18:36, 16 August 2023

Other languages:
The forward block

forward [_] es un bloque de código porte de Movimiento cajón.

Uso

forward [_] mueve elagent en Spaceland en el headingse está enfrentando. Elrenderer tweens el movimiento de tal manera que parece que el agente cambia de ubicación sin problemas en lugar de instantáneamente.

forward [_] is a code block part of the Movement drawer.

Usage

forward [_] moves the agent in Spaceland in the heading it is facing. The renderer tweens the movement such that it appears the agent changes location smoothly instead of instantaneous.

Sintaxis

The Forward Block

adelante [number]

Example

Forward example gif
Forward example code

When the ‘forever’ button is toggled, the ‘turtle’ agents move forward by one step, while also turning randomly, allowing them to wander randomly throughout spaceland.

Matices

Debido a la tweening efecto, ciertas interacciones pueden causar confusión. Haga clic aquí para leer más sobre cómo la interpolación puede crear escenarios confusos.

Bloques relacionados