Author Topic: More discreet collisions?  (Read 650 times)

NateTheGreatt

  • Member
  • **
  • Posts: 83
  • Karma: +0/-0
  • smell the sound
    • View Profile
    • n8bit
More discreet collisions?
« on: Thu, Aug 18, 2011 »
I'm setting up an inventory system that works by literally fitting as many items as you can into the designated inventory zone. Right now for testing purposes I have created a bunch of sprites with random width and heights and added them into this zone. I call collide with that group of sprites on itself so they all collide with each other.

My problem is that sometimes the sprites get stuck inside of one another. How can I prevent this from happening?
"A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away."
-Antoine de Saint-Exupery