Jump to content

Sprite position after scaling game


Recommended Posts

Hi there, 

Trying to make my game have a full screen option and I have found it easy enough to start full screen mode and I have started with scale mode SHOW_ALL. 

When I drag an element in full screen mode the x position of the sprite is still in non scaled mode.  I have found that I need to multiply it by game.scale.scaleFactor to get the correct value which seems to be correct. 

Am I doing this right or should I be looking elsewhere for a more reliable value?



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...