We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a81cc1b + 7154161 commit 326abe7Copy full SHA for 326abe7
tutorials/2d/2d_movement.rst
@@ -231,9 +231,9 @@ on the screen will cause the player to move to the target location.
231
var target = position
232
233
func _input(event):
234
- #use is_action_just_pressed to only accept single taps as input instead of mouse drags
+ # Use is_action_pressed to only accept single taps as input instead of mouse drags.
235
if event.is_action_pressed("click"):
236
- target = get_global_mouse_position()
+ target = get_global_mouse_position()
237
238
func _physics_process(delta):
239
velocity = position.direction_to(target) * speed
0 commit comments