G'day Ya'll,
I'm making a side scroller platform game, and my Player has to pick up and move a few items. When his is on contact with the item, and the player presses "Space," He can pick up each item independently, carry it above his head, and drop it where he needs to. The problem is IF there are two items stacked on top of each other already -- say a basket and a log -- The character picks up both at once, and holds both above his head.
I'm trying to get it to choose between them, i dont care which is first. I've got the rough idea of families, but can't execute it properly. I've seen another tutorial and picking nearest using "Touch," but my game isn't a touch game, and i can't seem to wrap my mind around how i would compare those ideas. Any Ideas?