icEEE Posted July 16, 2015 Share Posted July 16, 2015 (edited) Edit: Solved. I should have looked harder. $(window).click(function() { var mouse = renderer.plugins.interaction.mouse.originalEvent; var x = (mouse.pageX - stage.position.x) / stage.scale.x / drawScale; var y = (mouse.pageY - stage.position.y) / stage.scale.x / -drawScale; var ball = new Ball(x, y); }); Edited July 16, 2015 by icEEE Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.