Backwards: Difference between revisions

From StarLogo Nova Wiki
(Marked this version for translation)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
<translate>
<!--T:1-->
[[Category:Movement]]
[[Category:Movement]]
<section begin="image"/>[[File:Backwards.png|alt=The backwards block|thumb]]<section end="image"/>
<section begin="image"/>[[File:Backwards.png|alt=The backwards block|thumb]]<section end="image"/><p id="tooltip">Moves backwards a specified number of steps.</p>
 
<!--T:6-->
<section begin="name" />'''{{Block|backwards [_]}}'''<section end="name" /> is a [[code block]] part of the [[Movement]] drawer.
<section begin="name" />'''{{Block|backwards [_]}}'''<section end="name" /> is a [[code block]] part of the [[Movement]] drawer.


<!--T:2-->
==Usage==
==Usage==
<p id="tooltip">{{Block|backwards [_]}} moves the [[agents|agent]]  in [[Spaceland]] in the [[heading]] opposite that which it is facing. The [[Engine#rendering|renderer]] [[Engine#tweening|tweens]] the movement such that it appears the agent changes location smoothly instead of instantaneous. </p>
{{Block|backwards [_]}} moves the [[agents|agent]]  in [[Spaceland]] in the [[heading]] opposite that which it is facing. The [[Engine#rendering|renderer]] [[Engine#tweening|tweens]] the movement such that it appears the agent changes location smoothly instead of instantaneous.
 
<!--T:3-->
==Syntax==
[[File:Backward Nums.png|right|alt=The Backward Block|thumb]]
<!-- <code>backwards [number]</code> -->
Inputs in this block:
# a number
 
==Example== <!--T:7-->
 
<!--T:8-->
[[File:backwards_example.gif|alt=Backwards example gif|thumb]]
[[File:backwards_example.png|alt=Backwards example code|thumb]]


===Syntax===
<!--T:9-->
<code>backwards [number]</code>
While the forever button is toggled, the turtle agents wander throughout spaceland randomly, turning by a random amount and moving [[Special:MyLanguage/Forward|forwards]]. However, a button, called ‘Reverse,’ can make the turtles move backwards instead. Pressing the ‘Reverse button twice will set the turtles moving forwards again.


== Nuances ==
<!--T:4-->
==Nuances==
Because of the [[Engine#tweening|tweening]] effect, certain interactions can cause confusion. [[Explaining Up Tweening Confusion|Click here to read more on how tweening can create confusing scenarios.]]
Because of the [[Engine#tweening|tweening]] effect, certain interactions can cause confusion. [[Explaining Up Tweening Confusion|Click here to read more on how tweening can create confusing scenarios.]]


<!--T:5-->
==Related Blocks==
==Related Blocks==
*{{Block|Forwards|forwards[_]}}
*{{Block|Forward|forward[_]}}
*{{Block|Left By Degs|left by [_] degs}}
*{{Block|Left By Degs|left by [_] degs}}
*{{Block|Right By Degs|right by [_] degs}}
*{{Block|Right By Degs|right by [_] degs}}
*{{Block|up|up [_]}}
*{{Block|up|up [_]}}
*{{Block|down|up [_]}}
*{{Block|down|up [_]}}
*{{Block|Teleport To XYZ|teleport to x: [_] y: [_] z: [_]}}
*{{Block|Teleport To|teleport to x: [_] y: [_] z: [_]}}
</translate>

Latest revision as of 17:01, 14 August 2023

Other languages:
The backwards block

Moves backwards a specified number of steps.

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

Usage

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

Syntax

The Backward Block

Inputs in this block:

  1. a number

Example

Backwards example gif
Backwards example code

While the forever button is toggled, the turtle agents wander throughout spaceland randomly, turning by a random amount and moving forwards. However, a button, called ‘Reverse,’ can make the turtles move backwards instead. Pressing the ‘Reverse button twice will set the turtles moving forwards again.

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