Basically, I have a game that looks like this:
You need to jump up the platforms and collect the point thingies.
I've been working on said point thingies, but I've run into a problem when picking them up.
I have the actual physics body destroyed well, but when I try to remove it from the "pickups" table, all of them graphically disppear, but I can still jump on them without their physics bodies disappearing: Everywhere I searched, it said that making the object nil is the proper way of removing an object from a table, and I'm using
Code: Select all
objects.pickups[i] = nil
http://pastebin.com/L3r78GE3
My code, no clue about using object-oriented shit(like in Java) for now, just making this thing to try it out.