Up/es: Difference between revisions

From StarLogo Nova Wiki
(Created page with "Subir")
 
(Updating to match new version of source page)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>
<div lang="en" dir="ltr" class="mw-content-ltr">
<section begin="image"/>[[File:up.png|alt=The Up Block|thumb]]<section end="image"/>
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
<p id="tooltip">Moves up by a specified number of steps.</p>
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
==Usage==
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
Will move any agent upwards in the “z” direction by the number of steps specified.
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
==Syntax==
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
Inputs in this block:
#a number
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
==Example==
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
[[File:up_example.gif|alt=Up example gif|thumb]]
[[File:up_example.png|alt=Up example code|thumb]]
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
The up block is useful to take advantage of the 3D features of StarLogo. By adding the up block, we create a more realistic model of predator-prey interactions and fish movement. To enable random vertical movement and keep all fish above ground, fish who fall below the valid range of z values are automatically raised above ground in the final [[Special:MyLanguage/If|if]] statement.
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
==Related Blocks==
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
*[[Special:MyLanguage/Down|Down]]
</div>


[[Category:Movimiento]]
[[Category:Movimiento]]
[[Category:Code Block]]
[[Category:Code Block]]

Latest revision as of 18:36, 14 August 2023

Other languages:
The Up Block

Moves up by a specified number of steps.

Will move any agent upwards in the “z” direction by the number of steps specified.

Syntax

Inputs in this block:

  1. a number

Example

Up example gif
Up example code

The up block is useful to take advantage of the 3D features of StarLogo. By adding the up block, we create a more realistic model of predator-prey interactions and fish movement. To enable random vertical movement and keep all fish above ground, fish who fall below the valid range of z values are automatically raised above ground in the final if statement.

Related Blocks