Copy link to clipboard
Copied
Help!
I'm making an interactive map where you click on a pin-shaped button to camera zoom in on that location and some stats appear. It was looking good in test view, as well as integrated into my website on desktop, but on mobile the camera is zooming to different locations.
I'm doing all the zooming/animation through action script- my animation is only one frame.
I have this issue when I tell the camera to zoom to
event.stageX / dpr,
event.stageY / dpr
or to
(env.cam.InitX + 100) / dpr
(env.cam.InitY -80) / dpr
where var env = {
cam.InitX: CameraObject.camera.x,
cam.InitY: CameraObject.camera.y }
What is happening???
Copy link to clipboard
Copied
use a text field to display those values so you can see how your mobile and desktop differ.
Copy link to clipboard
Copied
@kglad Sorry, I'm really new to this. Can you elaborate on what you mean?
Copy link to clipboard
Copied
when debugging on mobile you can't use trace/console.log. use a text field (during testing) to display relevant value.