Skip to content

Commit 5425bf6

Browse files
2d movement indent
Co-authored-by: A Thousand Ships <[email protected]>
1 parent 199fb54 commit 5425bf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/2d/2d_movement.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ on the screen will cause the player to move to the target location.
233233
func _input(event):
234234
#use is_action_just_pressed to only accept single taps as input instead of mouse drags
235235
if event.is_action_pressed("click"):
236-
target = get_global_mouse_position()
236+
target = get_global_mouse_position()
237237

238238
func _physics_process(delta):
239239
velocity = position.direction_to(target) * speed

0 commit comments

Comments
 (0)