mdx_jsilver Posted September 6, 2019 Share Posted September 6, 2019 Hi, I'm making a parallax side scroller type game in Pixi and I'm pretty far. However when I hook up Bump.js to stop sprite overlapping, the enemy collides with the player way too soon, hundreds of pixels to the right. How do I diagnose this problem? Is there a way to show the true size of a Pixi sprite? Thanks. Quote Link to comment Share on other sites More sharing options...
d13 Posted September 9, 2019 Share Posted September 9, 2019 Have you tried the pixi plugin for Chrome? It will display the actual sprite bounding boxes for you. https://chrome.google.com/webstore/detail/pixijs-devtools/aamddddknhcagpehecnhphigffljadon?hl=en Bump.js is my project, so I'm to blame if there's a problem with it! ? But my guess is that the actual width and height of the sprite is bigger than you think it is because of child sprites increasing its size. ivan.popelyshev 1 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.