Collision change

Hi there, I'm making a breakout adaptation kind of game and needed a tip to get my unique style to work.
I want the "bricks" that my ball hits to vanish, add score and be non collidable with the ball for a few seconds. Then to re-appear and be collidable again.
I have the vanishing part working by changing "alpha" to "0" and have made it change the score attribute when hit. I also have the reappearing after the timer working.
How do I make the Bricks non-collidable with the ball for a short period??
I'm also hanging around on your chat room if you would prefer to answer me that way
Thanks in advance, Csam
I want the "bricks" that my ball hits to vanish, add score and be non collidable with the ball for a few seconds. Then to re-appear and be collidable again.
I have the vanishing part working by changing "alpha" to "0" and have made it change the score attribute when hit. I also have the reappearing after the timer working.
How do I make the Bricks non-collidable with the ball for a short period??
I'm also hanging around on your chat room if you would prefer to answer me that way
Thanks in advance, Csam
Comments
If the collide is in the ball you will need a game attribute, when the blocks go to alpha 0 they will need to change this game attribute, when they are back at alpha 1 you switch the game attribute back. Then in the ball, wrap your collide behaviour in a rule that says, when game.yourswitchname is true then collide
I just had a creative block, thanks for that! Seems obvious now you have said it.
The collide attribute is with the block so its that easy.
Thanks Very much!!!
Glad to help