Note: Due to NDA, I can't post the capx file. Sorry!
I try to explain this as good as I can. So I have a game, 2D sindescrolling style. So the idea is it that if you pick up item, you add +1 to said item.
lets say i pick up one nail, i add +1 to the global variable for the nail. so i should have 1 nail. that always worked for the last few weeks until now. I don't know why, but suddenly, every time i pick up a nail, i get 2. the debog mode tells me that yes, there is one nail instance (so i don't accidentally pick up two) and when i pick it up i get two nails.
now at first i thought it is a timing issue, that he runs the action twice before destroying the initial obejct, but that is also not the case. so i thought that another variable or object interferes with the global variable, so i togge disabled everything except the functions for the player picking up the nail - same result. then i did a word search for the variable because i figured if there is an interference somewhere i can find it that way - no roblem there, everything is set up the way it was.
so i have no clue why i have this problem. the thing is, i could easily set picking up said object to 0.5 instead of 1 so i get my 1 nail, so to speak. but that does nto solve the underlying problem and i have no clue what that might be...
edit: maybe it helps if i tell you that it happens to at least two variables, both are pickup items, butit does not happen to all pickup items. the code for the item drops anditems pickups are the same, just with their corresponding images. one of those images is animated, one isn't so that's also not a factor.