Basically, my game looks similar to pong, but there is a wall in front of the platform. The ball will come and the player has to hit it with the platform. When the ball touches the wall on the oposite side of the platform, it will play animation2. I want to make it so when the ball is playing animation2, it will not go through the wall in front of the platform, staying in that square.