• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Camera working differently across devices

New Here ,
Dec 11, 2020 Dec 11, 2020

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???

 

 

 

Views

120

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 11, 2020 Dec 11, 2020

Copy link to clipboard

Copied

use a text field to display those values so you can see how your mobile and desktop differ.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 11, 2020 Dec 11, 2020

Copy link to clipboard

Copied

@kglad  Sorry, I'm really new to this. Can you elaborate on what you mean? 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 11, 2020 Dec 11, 2020

Copy link to clipboard

Copied

LATEST

when debugging on mobile you can't use trace/console.log.  use a text field (during testing) to display relevant value.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines