Sorry, I know I asked this in my other post but I felt like it'd be better off to make a new post about this.
I can't seem to figure out how to destroy the ball object after it has bounced two times. Not only that, but I want to make it so that a sound effect plays every time it bounces off of a wall.
I was thinking of making is so when the ball collides with a solid, it rasies a private variable up by 1. Then when it gets to a certain value, it destroys itself. But that doesn't work. The value stays at zero even when it collides with the wall. It doesn't play a sound effect either, no matter what I do.
There doesn't seem to be an event option to check for if the ball has "bounced" or not. Maybe I'm wrong. But I can't seem to figure out how to do this simple thing in Construct. Could anyone help me out?