Crazy easy question… I’m trying to recreate “breakout” by Atari. I have a question about bricks that the ball will hit and break. I need a lot of these bricks in the game. Is there a way to have the same game object appear more than once in a collection? Or do I just need to duplicate the game object like 30 times so I get 30 different game objects?
Thanks everyone!
You could simply cut & paste your ‘brick’ game object 30 times, yes. For more flexibility you could use a factory to dynamically create the game objects at runtime. Check out http://www.defold.com/ref/factory/
If it were me though, I’d use a tilemap for the bricks - http://www.defold.com/ref/tilemap/
3 Likes
Thanks! I’ll give the factory a shot.
The factory worked perfectly @benjames171 Thanks!
4 Likes