0 votes

I'm learning godot3 by building a simple breakout game.
Got almost everything working and I'm placing the bricks.

Now there 2 possible soluitions I see for placing bricks.

Should I use tilemap with bricks to quickly create the layout of the bricks per level.
Currently I'm using tilemaps with some success.

or should I use staticbody and place them by duplicating them.

The bricks should:
1. crack on hit
2. dissapear
3. have hidden powerups when dissapear they drop.

What is the best coding strategy?

in Engine by (75 points)

1 Answer

0 votes

Are you aware of the fact, that you can store PhysicsBody2Ds in tiles and therefore in tilesets? Just Include the bodies in your node hirarchy and then convert the scene into a tilemap via Scene > Converto to... > TileSet.

Hope this helps. :P

by (840 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.