Jump to content

Input coordinates in scaled mode


Recommended Posts



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

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