I’m relatively new to the coding industry and have tried everything. I have legitimately no idea how to figure this out, but basically I want it so you can click the screen, and move around your camera view with your mouse. ( optional ) and when you stop moving you have a bit of deceleration. Any tips?
You mean like this?
howtoconstructdemos.com/scroll-by-dragging-the-screen-with-touch-or-mouse
yes! exactly like that. thanks for the file, but how do i do it? like could you explain it so i dont have to use the file every time i want to impliment this as a feature?
You can copy the events from my project into yours. That's what the demo is for. Just remove irrelevant stuff like sliders.
Tried that, but turns out all they did was make the bg drag and drop. Which isn’t what I want. I want the CAMERA to move as if it’s a drag and drop, but not do that buggy thing where it moves continuously.
Did you copy everything correctly from my project?
Please post a screenshot of the code or share your project file.
i didnt copy, i just simply put an object in the viewport and it doesnt move. only the bg does.
Develop games in your browser. Powerful, performant & highly capable.
Put the object in the layer 0
Did it. It worked! But that still doesn’t really solve my problem, I have no idea how to replicate it. Sure, I can copy and paste it but if I learn how to do it it’ll be much more helpful.