1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 09:39:48 +00:00
Pixelorama/src/Tools/Pan.gd
2021-02-02 17:48:17 +02:00

16 lines
276 B
GDScript

extends BaseTool
func draw_start(_position : Vector2) -> void:
Global.camera.drag = true
Global.camera2.drag = true
func draw_move(_position : Vector2) -> void:
pass
func draw_end(_position : Vector2) -> void:
Global.camera.drag = false
Global.camera2.drag = false