Jump to content

Bump.js collides with sprite way too soon


Recommended Posts



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?



Link to comment
Share on other sites

Have you tried the pixi plugin for Chrome? It will display the actual sprite bounding boxes for you.


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.

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