Forward: Difference between revisions

From StarLogo Nova Wiki
mNo edit summary
No edit summary
Line 16: Line 16:
<!--T:2-->
<!--T:2-->
==Syntax==
==Syntax==
<section begin=image/>[[File:Forward Nums.png|right|alt=The Forward Block|thumb]]<section end=image/>
[[File:Forward Nums.png|right|alt=The Forward Block|thumb]]
<!-- <code>forward [number]</code> -->
<!-- <code>forward [number]</code> -->
Inputs in this block:
Inputs in this block:

Revision as of 19:09, 10 August 2023

Other languages:
The forward block

Moves forward a specified number of steps.

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.

Syntax

The Forward Block

Inputs in this block:

  1. a number

Nuances

Because of the tweening effect, certain interactions can cause confusion. Click here to read more on how tweening can create confusing scenarios.

Related Blocks