Skip to content

Commit 81be146

Browse files
Minor fixes in scripting_first_script.rst (godotengine#8415)
* Minor fixes in scripting_first_script.rst Changed "by default" to "at their default values" and "calling the rotated() method on any Vector2" to "calling the Vector2 method rotated()" (in context, these changes are correct). Also added a missing comma. * "at" -> "set to" in scripting_first_script.rst Co-authored-by: A Thousand Ships <[email protected]>
1 parent 2678909 commit 81be146

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

getting_started/step_by_step/scripting_first_script.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ The Attach Node Script window appears. It allows you to select the script's
8585
language and file path, among other options.
8686

8787
Change the Template field from "Node: Default" to "Object: Empty" to start with a clean file. Leave the
88-
other options by default and click the Create button to create the script.
88+
other options set to their default values and click the Create button to create the script.
8989

9090
.. image:: img/scripting_first_script_attach_node_script.webp
9191

@@ -283,7 +283,7 @@ defines a local variable: it only exists within the function's scope.
283283
We define a local variable named ``velocity``, a 2D vector representing both a
284284
direction and a speed. To make the node move forward, we start from the Vector2
285285
class's constant ``Vector2.UP``, a vector pointing up, and rotate it by calling the
286-
``rotated()`` method on any ``Vector2``. This expression, ``Vector2.UP.rotated(rotation)``,
286+
Vector2 method ``rotated()``. This expression, ``Vector2.UP.rotated(rotation)``,
287287
is a vector pointing forward relative to our icon. Multiplied by our ``speed``
288288
property, it gives us a velocity we can use to move the node forward.
289289

@@ -299,7 +299,7 @@ Run the scene to see the Godot head run in circles.
299299
walls or the floor. In :ref:`doc_your_first_2d_game`, you will learn
300300
another approach to moving objects while detecting collisions.
301301

302-
Our node currently moves by itself. In the next part
302+
Our node currently moves by itself. In the next part,
303303
:ref:`doc_scripting_player_input`, we'll use player input to control it.
304304

305305
Complete script

0 commit comments

Comments
 (0)