ReachTheFlagGames Posted October 31, 2013 Share Posted October 31, 2013 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 More sharing options...
ReachTheFlagGames Posted November 1, 2013 Author Share Posted November 1, 2013 I found a temporary solution that works as long as the canvas is centered on the web page.if(game.input.activePointer.pageX > window.innerWidth/2) Link to comment Share on other sites More sharing options...
rich Posted November 1, 2013 Share Posted November 1, 2013 Please pull 1.1.2 from the dev branch and re-test, I've done a lot of work on this tonight and it should function as expected now. Link to comment Share on other sites More sharing options...
ReachTheFlagGames Posted November 1, 2013 Author Share Posted November 1, 2013 Please pull 1.1.2 from the dev branch and re-test, I've done a lot of work on this tonight and it should function as expected now.Yep, works great! Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts