Procházet zdrojové kódy

Move visor with mouse

DricomDragon před 3 roky
rodič
revize
4f34199feb
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      godot/scripts/Launcher.gd

+ 2 - 0
godot/scripts/Launcher.gd

@@ -32,6 +32,8 @@ func _ready():
 func _input(event):
 	if event is InputEventMouseButton and event.is_pressed() :
 		trigger(event.position)
+	elif event is InputEventMouseMotion and current_state == State.READY:
+		target.position = event.position
 
 
 func trigger(aim:Vector2):