Forward: Difference between revisions
No edit summary |
(Marked this version for translation) |
||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!--T:1--> | |||
[[Category:Movement]] | [[Category:Movement]] | ||
<section begin="image"/>[[File:Forward Block.png|alt=The forward block|thumb]]<section end="image"/> | <section begin="image"/>[[File:Forward Block.png|alt=The forward block|thumb]]<section end="image"/> | ||
Line 8: | Line 9: | ||
<p id="tooltip">{{Block|forward [_]}} moves the [[agents|agent]] in [[Spaceland]] in the [[heading]] 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> | <p id="tooltip">{{Block|forward [_]}} moves the [[agents|agent]] in [[Spaceland]] in the [[heading]] 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> | ||
<!--T:2--> | |||
===Syntax=== | ===Syntax=== | ||
<code>forward [number]</code> | <code>forward [number]</code> | ||
<!--T:3--> | |||
== Nuances == | == 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:4--> | |||
==Related Blocks== | ==Related Blocks== | ||
*{{Block|Backwards|backwards [_]}} | *{{Block|Backwards|backwards [_]}} |
Revision as of 14:21, 29 June 2023
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
forward [number]
Nuances
Because of the tweening effect, certain interactions can cause confusion. Click here to read more on how tweening can create confusing scenarios.