Skip to content

Commit 59de155

Browse files
2d movement click cs StringName
Co-authored-by: A Thousand Ships <[email protected]>
1 parent 326abe7 commit 59de155

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
@@ -232,7 +232,7 @@ on the screen will cause the player to move to the target location.
232232

233233
func _input(event):
234234
# Use is_action_pressed to only accept single taps as input instead of mouse drags.
235-
if event.is_action_pressed("click"):
235+
if event.is_action_pressed(&"click"):
236236
target = get_global_mouse_position()
237237

238238
func _physics_process(delta):

0 commit comments

Comments
 (0)