Roy2K Posted May 4, 2016 Share Posted May 4, 2016 Hi I have a button that I've created from a png image But the hitArea sits outside of the image (even the canvas!) I've uploaded a zip file Hopefully someone can help Thanks hitArea.zip Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted May 4, 2016 Share Posted May 4, 2016 Dear Roy2K! Your canvas size is wrong. Its 823x457 instead of 900x500 because of padding. Unfortunately, PIXI interaction cant detect that Quote Link to comment Share on other sites More sharing options...
Roy2K Posted May 4, 2016 Author Share Posted May 4, 2016 Thanks so much for that! Putting padding on the canvas element itself, isn't the best of ideas now I think about it Thanks again 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.