The title pretty much says it all. The idea is that the player will be able to pick up certain items but only if they click on the item while their character is colliding with it. I’ve can add 1 to a variable when either one of the two conditions is met and then checking if the variable = 2, but its value is increased whenever the character collides with it, meaning that it can go too high, so I would also need a way of checking when the collision ends to then subtract 1…
I’m sure there must be a simple way of doing this or another mean of generating that result?
Thanks!