i have to make an app that when the ball hit the block first time blocks has a crack and second time they collaspe can you make me this kind of app?
on collide, if brick image is not the cracked image, then set the cracked image. if brick image is the cracked image then change visibility of brick / remove brick
See this sample Pong app to see how the ball periodically senses if it hit the goalie paddle before hitting the open edge.
You can use the hit logic from Pong and some math to divide up what used to be the paddle area into a brick wall with rows and columns, and track brick statuses by row and column in a table (list of lists).