mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
FPS/Part1: fix GDScript missing char
This commit is contained in:
@@ -183,7 +183,7 @@ Add the following code to ``Player.gd``:
|
||||
if Input.is_action_pressed("movement_left"):
|
||||
input_movement_vector.x -= 1
|
||||
if Input.is_action_pressed("movement_right"):
|
||||
input_movement_vector.x = 1
|
||||
input_movement_vector.x += 1
|
||||
|
||||
input_movement_vector = input_movement_vector.normalized()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user