Browse Source

2d movement indent

Co-authored-by: A Thousand Ships <[email protected]>
HubbleCommand 11 months ago
parent
commit
5425bf6475
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tutorials/2d/2d_movement.rst

+ 1 - 1
tutorials/2d/2d_movement.rst

@@ -233,7 +233,7 @@ on the screen will cause the player to move to the target location.
     func _input(event):
         #use is_action_just_pressed to only accept single taps as input instead of mouse drags
         if event.is_action_pressed("click"):
-		    target = get_global_mouse_position()
+            target = get_global_mouse_position()
 
     func _physics_process(delta):
         velocity = position.direction_to(target) * speed