So I am making a game in which a character can cut down a tree stump.
The tree stump is one single object in the objects list.
I want the tree stump object that the character is in collision with to be deleted.
It all works fine until i decide that i want to have more than one tree stump.
If my character now collides with one of the tree stumps it deletes both because i told it to delete the object.
So is there any way of telling the game, to only delete the stump that the character is in collision with, so that it doesn’t delete both.
My solution for now was to just make them two separate objects.
The problem with that is that i have to make a new variable and copy all the events for every new stump object i want to make. That seems much to complicated…
Thanks to anyone who might have a solution to this!