Your player collides with another actor and you want the collision (or another event) to be detected only once in your Stencyl game, but it keeps happening over and over. You’re not on your own; it’s a common problem!
Let’s say that you want the health of the actor to decrease, or you want to add a bonus to your score when the collision occurs, or play a sound. The problem is that the collision is detected multiple times until your player moves away from the actor with which it has collided.
There is a nice, easy solution to this problem, and it uses a single attribute to keep track of whether or not a collision has already occurred. Read on to find out how it works, and learn a little about Stencyl’s debugging tools along the way!