There has been this serious issue looming over my head involving players being killed when coming CLOSE to a spike but not touching it. I couldn't figure out what this was. It only happened sometimes. Was it a problem with the collision detection? Was there something wrong with the player sprite? What??
Well, I did a little testing, and I could get as close as I wanted to any spike without dying, except... the spike the pointed down... and only on the right side. What the heck?
I opened it up in the editor, and wouldn't ya know it... there's a partially opaque pixel hangin' out down in the bottom right of the sprite's bounding box.
See screenshot
Edit: Actually, it turns out this rogue pixel was in all of the spike sprites. I'm removing it now!
|
|