Procházet zdrojové kódy

2d movement explicit drag

HubbleCommand před 1 rokem
rodič
revize
199fb540ef
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      tutorials/2d/2d_movement.rst

+ 1 - 1
tutorials/2d/2d_movement.rst

@@ -231,7 +231,7 @@ on the screen will cause the player to move to the target location.
     var target = position
     var target = position
 
 
     func _input(event):
     func _input(event):
-        #use is_action_just_pressed to only accept single taps as input
+        #use is_action_just_pressed to only accept single taps as input instead of mouse drags
         if event.is_action_pressed("click"):
         if event.is_action_pressed("click"):
 		    target = get_global_mouse_position()
 		    target = get_global_mouse_position()