We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2b9aec commit ec366a6Copy full SHA for ec366a6
getting_started/step_by_step/scripting_player_input.rst
@@ -102,7 +102,7 @@ velocity. Replace the line starting with ``var velocity`` with the code below.
102
var velocity = Vector2.Zero;
103
if (Input.IsActionPressed("ui_up"))
104
{
105
- velocity = Vector2.Up.Rotated(Rotation) * Speed;
+ velocity = Vector2.Up.Rotated(Rotation) * _speed;
106
}
107
108
We initialize the ``velocity`` with a value of ``Vector2.ZERO``, another
0 commit comments