Jump to content

Input coordinates in scaled mode


ReachTheFlagGames
 Share

Recommended Posts

Hello,

 

My game is acting really weirdly scaled to both exact fit and show all. For some reason it registers the input coordinates wrong but buttons work fine. I've tested with both the dev branch and the master branch but the problem persist. Any help/known workarounds?

 

Code I use in update ()

if(game.input.activePointer.isDown && game.input.y < 480-75){	if(game.input.x > 160)	{		player.body.x += 3;		player.angle += 5;	}	else	{		player.body.x += -3;		player.angle -= 5;	}}

Best regards

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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