You can implement dragging with something like that : func _unhandled_input(event): . if event is InputEventMouseMotion: . . if Input.is_action_pressed("drag_screen"): . . . print(event.relative)
Note that you have to add a “drag_screen” action in your projects settings, Input Map tab. You could check for left click directly, but it would prevent your user from easily remapping afterwards.
You can try moving the TileMap and the Camera, to see which is more practical.
It’s even easier than Lopy’s solution with a new action. It exists InputEventScreenDrag. Then, one must just enable “Emulate Touch From Mouse” in the Settings and combine event.relative with the current position.