Jump to content

Sprite position after scaling game


natewallis
 Share

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?

Thanks, 

nathan

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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