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

HiDPI/Retina Screen Support?

Explorer ,
Apr 18, 2017 Apr 18, 2017

Hi everybody,

I'm trying to make something that follows the current mouse position:

stage.addEventListener("stagemousemove", handleMouseMove);

cursor = new createjs.Shape(new createjs.Graphics().beginFill("#FF0000").drawCircle(0, 0, 30));

stage.addChild(cursor);

function handleMouseMove(e)

{

  cursor.x = e.stageX;

  cursor.y = e.stageY;

}

this works on the normal screen, but doesn't work on the HiDPI screen, it seems the stage mouse coordinator becomes 2x.

I'm using the latest Animate CC so it should have HiDPI support, does anyone knows why this does not work and how to solve it? Thanks.

Regards,

Chih-Wei

556
Translate
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

correct answers 1 Correct answer

Explorer , Apr 18, 2017 Apr 18, 2017
Translate
LEGEND ,
Apr 18, 2017 Apr 18, 2017

Did you test with the responsive settings in publish settings?

There is a stage scale value that could be used, but the standard publishing should take care of that.

Translate
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
Explorer ,
Apr 18, 2017 Apr 18, 2017

Hi Colin, thanks for your respond, did you mean check 'Make responsive'? I just did that but still no good luck.

I have the source file here: Dropbox - canvas_retina could you take a look when you get a chance? Thanks.

Screen-Shot-2017-04-18-at-10.01.48-PM.jpg

Regards,

Chih Wei

Translate
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
Explorer ,
Apr 18, 2017 Apr 18, 2017
LATEST
Translate
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