Hello. Im trying to figure out how i detect if my Ball has been overlapping a sprite for x time so i can destroy the ball afterwards.
I can't seem to figure out how i get it working, guess im just stuck atm :/
I hope you can give me some example on how this could be done easily and lightly.
example:
Ball is overlapping sprite("balldestroyer") for 2sec after that the ball gets destroyed, allthough the ball cannot leave the area of the balldestroyer, the ball HAS to be within the balldestroyers X and Y to be destroyed after 2sec.