Move and drag camera

Hi! Its my first day on gdevelop, I’ve ran into just a few issues that took me very long time to figure out and so far I could only “successfully” achieve zoom in and out with touchscreen on my game, im lacking dragging and moving camera around, I’ve installed the extension but I have no clue why it won’t work, I’ve made sure everything’s on same layer, could you please look into my events and suggest a solution​:pray::pleading_face:


`

Hi,

In the description for the extension it is mentioned that you should run this action on every frame you want the camera to be movable.

With the ‘Trigger once while true’-condition you are basically limiting the action to happen to one frame. So you need to get rid of the “Trigger once”.

Hi, thank you for ur reply! I’ve tried deleting the condition but its still the same what else can I do?

It should actually work now. I have tried it and there is no problem with the extension.
I suppose you have some objects in your scene so that you can see when the camera is changing its position? Maybe you could set up another simple scene for testing and only add the camera-drag action (just to see that it works for you).

I just tested on my computer and for some reason the camera is draggable there?? But still not on my mobile device, sure I will test that out on separate project, thank you a lot!!

1 Like

Another guess is that the ‘drag-camera’- extension and the ‘pinching gesture’-extension are somehow interfering with each other. I havn’t used any touch controls but the ‘pinching gesture’-extension seems to allow moving the camera. So maybe you don’t need the ‘drag-camera’ extension.

Ill try to look into it, without the drag extension it just zoomed in and out, but maybe there were more actions ill check, ty😃

Maybe try removing
Remove mouse cursor when touching screen and let me know if it works

No way!!! I wasn’t sure it would because I thought I’ve tried removing it before but damn😳 that’s worked thankiuu

1 Like