I don't know if there is a template, but I can help you with what ever you think is difficult. The only thing I really sees to be the slightest problem is to remove the bricks, but here's my solution:
Rule When All:
tableRowCount(25numbers) > 0
self.time > self.startTime + 0.5
--Change Attribute self.randomNumber to random(1, tableRowCount(25numbers))
--Change Attribute game.destroyNumber to tableCellValue(25numbers, self.randomNumber, 1)
--Remove Row in 25numbers at index self.randomNumber
The above should only be on one dummy actor or the backgrouund or something like that. On all the bricks you should have a rule that says:
Rule When All:
Attribute game.destroyNumber = self.brickNumber
--Interpolate self.color.alpha to 0 for 0.1 seconds
I hope you understand what I'm saying, but just let me know if you run in to any other problem!
Answers
I don't know if there is a template, but I can help you with what ever you think is difficult. The only thing I really sees to be the slightest problem is to remove the bricks, but here's my solution:
Rule When All:
tableRowCount(25numbers) > 0
self.time > self.startTime + 0.5
--Change Attribute self.randomNumber to random(1, tableRowCount(25numbers))
--Change Attribute game.destroyNumber to tableCellValue(25numbers, self.randomNumber, 1)
--Remove Row in 25numbers at index self.randomNumber
The above should only be on one dummy actor or the backgrouund or something like that. On all the bricks you should have a rule that says:
Rule When All:
Attribute game.destroyNumber = self.brickNumber
--Interpolate self.color.alpha to 0 for 0.1 seconds
I hope you understand what I'm saying, but just let me know if you run in to any other problem!