Skip to content

Commit 326abe7

Browse files
committed
2 parents a81cc1b + 7154161 commit 326abe7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/2d/2d_movement.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@ on the screen will cause the player to move to the target location.
231231
var target = position
232232

233233
func _input(event):
234-
#use is_action_just_pressed to only accept single taps as input instead of mouse drags
234+
# Use is_action_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)