From 4a76a9010d048910ee262c1555d30de2c4fa4efd Mon Sep 17 00:00:00 2001 From: "David C. Drake" Date: Wed, 8 Nov 2023 19:07:17 -0700 Subject: [PATCH] Minor fixes in scripting_first_script.rst (#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 <96648715+AThousandShips@users.noreply.github.com> --- getting_started/step_by_step/scripting_first_script.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/getting_started/step_by_step/scripting_first_script.rst b/getting_started/step_by_step/scripting_first_script.rst index 14ac3ce53..e0973999c 100644 --- a/getting_started/step_by_step/scripting_first_script.rst +++ b/getting_started/step_by_step/scripting_first_script.rst @@ -85,7 +85,7 @@ The Attach Node Script window appears. It allows you to select the script's language and file path, among other options. Change the Template field from "Node: Default" to "Object: Empty" to start with a clean file. Leave the -other options by default and click the Create button to create the script. +other options set to their default values and click the Create button to create the script. .. image:: img/scripting_first_script_attach_node_script.webp @@ -283,7 +283,7 @@ defines a local variable: it only exists within the function's scope. We define a local variable named ``velocity``, a 2D vector representing both a direction and a speed. To make the node move forward, we start from the Vector2 class's constant ``Vector2.UP``, a vector pointing up, and rotate it by calling the -``rotated()`` method on any ``Vector2``. This expression, ``Vector2.UP.rotated(rotation)``, +Vector2 method ``rotated()``. This expression, ``Vector2.UP.rotated(rotation)``, is a vector pointing forward relative to our icon. Multiplied by our ``speed`` property, it gives us a velocity we can use to move the node forward. @@ -299,7 +299,7 @@ Run the scene to see the Godot head run in circles. walls or the floor. In :ref:`doc_your_first_2d_game`, you will learn another approach to moving objects while detecting collisions. -Our node currently moves by itself. In the next part +Our node currently moves by itself. In the next part, :ref:`doc_scripting_player_input`, we'll use player input to control it. Complete script