Skip to content

Commit ec366a6

Browse files
doc: replace incorrect Speed variable with _speed
1 parent c2b9aec commit ec366a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

getting_started/step_by_step/scripting_player_input.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ velocity. Replace the line starting with ``var velocity`` with the code below.
102102
var velocity = Vector2.Zero;
103103
if (Input.IsActionPressed("ui_up"))
104104
{
105-
velocity = Vector2.Up.Rotated(Rotation) * Speed;
105+
velocity = Vector2.Up.Rotated(Rotation) * _speed;
106106
}
107107

108108
We initialize the ``velocity`` with a value of ``Vector2.ZERO``, another

0 commit comments

Comments
 (0)