I want to create a scrollable screen for my game

Godot Version

Godot 4.7

Question

I want to make my game scrollable , but since ,when i click, it selects/deselects a cell i wasn’t able to make it scroll like i wanted (what i want is that it scroll up or down when i scroll on the screen, when i’m clicking on cell without any unit) . That’s why i wanted to ask if someone knew a way to make it possible.

( i used the asset from the tutorial i followed at the start but i will change them eventually)

(the tutorial i followed are the GDQuest : Tactical RPG movement , and the Heal Moon first 3 tutorials ( i didn’t follow the camera tutorial because it’s only suited for pc and not mobile which is the platform i’m aiming for))

A screen touch and a screen drag are different signals on mobile, so you should have no problem differentiating between the two. On PC it is a bit more complicated but only a bit. Have a look at the docs. They are a bit light but all the info is there.

It has been a while since I did a mobile game but I remember this part being quite straight forward to implement. I never did the multi touch pinch to zoom but I am guessing it would follow the same principles as drag, store the first point, get speed and distance from the current point, only with two points to track.

Anyway, without any code to look at there is not much else I can help with. Good luck with it.