Im working on one game. Where I want to use screen dragged by pointer extension but my objects are also dragable. so while moving the objects toward the target position screen also get scrolled/dragged.
Please suggest how to stop screen scrolling/dragging during object dragging behaviour
Hey, I’m replying to your original post here:
In case you are using the drag camera with mouse example included with GDevelop, you can do the following:
- Add each draggable object to an Object group
- In DragCamera events, as the very first condition under Move camera add a NOT operator.
- Inside the NOT operator add the condition “Group” is being dragged condition, replace “Group” with the name of the group containing the draggable objects
In this case I have added each draggable object to an Object group called “Draggable” and this is how the event looks like:
Notice the very first condition at the top. This is all you have to add.
Hope it helps
1 Like