So I have a whole bunch of platform objects. They all have an instance variable called "trigger" which I change to different values to achieve different things. Right now I do
-Player: On Colission with platform
-- Platform.trigger != 0
-> call function "te_" & platform.trigger
-> platform destroy
It's calling the function perfectly fine, but is deleting every platform instead of the one the player collided with. I know this has something to do with it not passing the platforms id to the function so it knows the specific one to delete. But how do I make it so it knows which one to do?
Sorry if it's confusing, I'm not the best at explaining things.