Jump to content

Hitbox is too high for collision


iFengo
 Share

Recommended Posts

On 6/29/2017 at 10:47 PM, iFengo said:

@ncilWhen the heart goes across the screen, it counts as a collision.

 

Your original code has been deleted/expired, so you might want to repost.

Anyway, it seems like it's a problem with your sprite's body. Did you try debugging the body of the player/heart? 

    render: function() {
         game.debug.body(SPRITE);
    }

This will show a box around the body of your sprite so you can see what is colliding.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...