How to make something collide then disappear.
So, i am making a brick breaker game. I have the bricks set up and the ball bounces off of the bricks. I want to be so that when the ball hits the brick to bounces off and then the brick disappears. I have the code to make the brick disappear when the ball collides with it but the ball does not bounce back. Does anyone know what i can do.
Thanks.
Comment
Best Answer
Answer by JedBeryll · May 27, 2016 at 06:10 AM
Destroy takes an optional t parameter which allows you to wait before destroying an object.
Destroy (gameObject, 5f);
This will wait 5 seconds.
Your answer
Follow this Question
Related Questions
Javascript: Appearing and Disappearing objects 0 Answers
Bouncy on player not working 0 Answers
stop the sphere(ball) to bounce 0 Answers
Tree rendering 0 Answers
Bounciness of 1 sticking to walls 1 Answer