iFengo Posted June 29, 2017 Share Posted June 29, 2017 Here is my code: https://pastebin.com/iH355eYP. The problem is, when a "bullet" collides with a "character" from an area above the character's "head", it is being counted as a collision. I've tried all of the advice I could find on the forum such as setting the height/width of the sprite body and whatnot, still no success Link to comment Share on other sites More sharing options...
ncil Posted June 29, 2017 Share Posted June 29, 2017 Hi, what do you mean above the character's head? Could you post a screenshot of the game? Thanks. Link to comment Share on other sites More sharing options...
iFengo Posted June 30, 2017 Author Share Posted June 30, 2017 @ncilWhen the heart goes across the screen, it counts as a collision. Link to comment Share on other sites More sharing options...
iFengo Posted June 30, 2017 Author Share Posted June 30, 2017 bump Link to comment Share on other sites More sharing options...
ncil Posted July 6, 2017 Share Posted July 6, 2017 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 More sharing options...
Recommended Posts