Camera manipulation using touch
-
How would I implement camera panning behavior using touch? Something like dragging your finger on a background to pan the scene. Can I tag every object with the same tag and move them all at the same time? Would also like to have the ability to pinch to zoom. Any ideas?
-
@Stanica You can use Move Screen and Zoom Screen. I tried to make a quick example but it's actually kinda hard in hyperPad, I got panning to work fine but zooming makes it a bit complicated.
-
How did you set up panning? I tried having an object the size of my screen and listening for touches on it but I think I got the logic wrong
-
Woot got panning working. Now for pinch to zoom.
-
@Stanica pinch to zoom is really hard to make since we cannot have how many fingers are touching the object. If you try it, I think it will be really glitchy. I recommend making a pannel with zoom in and zoom out icons, and while clicking it it zoom by the amount you want. Are maybe a sort of scrolling icon to zoom in and out ? You can make those with a life bar object.
-
@XxWhiteHearrxX Thanks for the tips
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login