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.
1 parent 199fb54 commit 5425bf6Copy full SHA for 5425bf6
tutorials/2d/2d_movement.rst
@@ -233,7 +233,7 @@ on the screen will cause the player to move to the target location.
233
func _input(event):
234
#use is_action_just_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