Take Camera: Difference between revisions

From StarLogo Nova Wiki
No edit summary
No edit summary
Line 1: Line 1:
[[Category:Agents]]
[[Category:Agents]]
<section begin=image/>[[File:Create Block.png|alt=The create block|thumb]]<section end=image/>
<section begin=image/>
{{#vardefine:create|<code>create [_] [▼](s)</code>}}
[[File:Take Camera.png|alt=take camera block|thumb]]
<section begin=name/>'''<code>create [_] [▼](s)</code>'''<section end=name/> is a [[code block]] part of the [[agents]] drawer.
<section end=image/>
{{#vardefine:take camera|<code>take camera</code>}}
<section begin=name/>'''<code>take camera</code>'''<section end=name/> is a [[code block]] part of the [[agents]] drawer.
==Usage==
==Usage==


<code>create [_] [▼](s)</code> is used to populate [[Spaceland]] with [[agent]]s.
<code>take camera</code> changes the camera perspective to be from the point of view of the agent executing the code.  


===Syntax===
{{#var:take camera}} can be useful for implementing interactive games from the first-person perspective.
 
==Related Blocks==
<code> create [Textbox: Number] [Dropdown: Type of Agent](s) </code>
 
==Nuances==


An important difference between {{#var:create}} and {{#vardefineecho:cedol|<code>[[Create Each Do|create [_] [▼](s) each do</code>]]}} is that {{#vardefineecho:cedo|<code>create [_] [▼](s) each do</code>}} allows a section of code to run individually for each [[agent]] that is created. {{#var:create}} only creates agents with the default [[trait]]s in the center of [[Spaceland]].
==Relevant Video Resources==


{{#var:cedol}} can be useful for [[randomizing traits]] and [[scattering agents without effecting others]].
==Relevant Activities==
[[Category:Code Block]]


==Related Blocks==
*{{#var:cedol}}


==Relevant Video Resources==
==Relevant Video Resources==

Revision as of 18:55, 8 August 2022


take camera block


take camera is a code block part of the agents drawer.

Usage

take camera changes the camera perspective to be from the point of view of the agent executing the code.

take camera can be useful for implementing interactive games from the first-person perspective.

Related Blocks

Relevant Video Resources

Relevant Activities


Relevant Video Resources

Relevant Activities