1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 17:49:47 +00:00
Pixelorama/src/Tools/Pan.gd

15 lines
292 B
GDScript3
Raw Normal View History

2020-12-23 18:41:42 +00:00
extends "res://src/Tools/Base.gd"
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