Back again after almost a day of coding without interruptions.
Now, however, Im in the middle of my Level-creating program, and once more, I get stomped by the code :/
In my EDIT mode, the grid of the floor is 24x24 wooden boxes and a spawn point for my character (the Cube).
My idea was that my player could walk around and I add things to the map from his location.
Also works well, but in this last step, I need to DeleteObject (the old floor), before inserting a new one, which has a trap.
If I just Create a new box, BOTH tiles are present, which cant be good. (see image).
HOW DO I DELETE an object, which has no "ID"?
Any ideas?