Left By Degs/en: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
{{Block|left by [_] degs}} orientates the [[agents|agent]]  in [[Spaceland]] to the left of its original [[heading]] by the inputted number of degrees during each Starlogo clock [[tick]].
{{Block|left by [_] degs}} orientates the [[agents|agent]]  in [[Spaceland]] to the left of its original [[heading]] by the inputted number of degrees during each Starlogo clock [[tick]].


===Syntax===
==Syntax==
<code>left by [number] degs</code>
<code>left by [number] degs</code>


== Nuances ==
Inputs in this block:
#a number


==Example==
[[File:while_toggled_example.gif|alt=Left By Degrees example gif|thumb]]
[[File:while_toggled_example.png|alt=Left By Degrees example code|thumb]]
When the ‘forever’ button is toggled, the ‘Turtle’ agents move [[Special:MyLanguage/Forward|forward]] and turns left by a random number between -30 and 30, allowing them to wander [[Special:MyLanguage/Forward|forward]] in a random direction.
==Nuances==


==Related Blocks==
==Related Blocks==

Latest revision as of 18:32, 16 August 2023

Other languages:
The left by degs block

Turns left by a specified number of degrees.

left by [_] degs is a code block part of the Movement drawer.

Usage

left by [_] degs orientates the agent in Spaceland to the left of its original heading by the inputted number of degrees during each Starlogo clock tick.

Syntax

left by [number] degs

Inputs in this block:

  1. a number

Example

Left By Degrees example gif
Left By Degrees example code

When the ‘forever’ button is toggled, the ‘Turtle’ agents move forward and turns left by a random number between -30 and 30, allowing them to wander forward in a random direction.

Nuances

Related Blocks