Down: Difference between revisions
(add tooltip text) |
(duplicate file already uploaded) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!--T:3--> | |||
<section begin="image"/>[[File:down.png|alt=The Down Block|thumb]]<section end="image"/> | |||
<!--T:2--> | |||
<p id="tooltip">Moves down by a specified number of steps.</p> | <p id="tooltip">Moves down by a specified number of steps.</p> | ||
==Usage== <!--T:4--> | |||
<!--T:5--> | |||
Will move any agent downwards in the “z” direction by the number of steps specified. | |||
==Syntax== <!--T:6--> | |||
<!--T:7--> | |||
Inputs in this block: | |||
#a number | |||
==Example== <!--T:8--> | |||
<!--T:9--> | |||
[[File:up_example.gif|alt=Down example gif|thumb]] | |||
[[File:up_example.png|alt=Down example code|thumb]] | |||
<!--T:10--> | |||
The down block is useful to take advantage of the 3D features of StarLogo. By adding the down block this becomes a more realistic model 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. | |||
==Related Blocks== <!--T:11--> | |||
<!--T:12--> | |||
*[[Special:MyLanguage/Up|Up]] | |||
<!--T:1--> | <!--T:1--> |
Latest revision as of 18:29, 16 August 2023
Moves down by a specified number of steps.
Usage
Will move any agent downwards in the “z” direction by the number of steps specified.
Syntax
Inputs in this block:
- a number
Example
The down block is useful to take advantage of the 3D features of StarLogo. By adding the down block this becomes a more realistic model 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.