So I'm making this game about bluntly building a wall. Even here, there are a lot of things that put me in a choke, and I'll be greatful if you guys helped me.
Maximum blocks you can build on a wall is 5. Once a block is broken, more is added to the maximum, so I can build blocks infinitely by breaking them. It's intended.
Now the building zone, it's red and you can't build unless you're in collision with an invisible sprite.
It moves up after a block is built, but the problem is, I do not know how to move it down in case a block is broken, resulting in endlessly building upwards.
Can someone tell me how to put it on an empty block space once one is broken? .capx is included:
drive.google.com/file/d/1O8tCBvbCKqt5KLLK8dIM5GWNf7wu0eNP/view
Use 0 key on your numpad to throw projectiles to break the wall.
You can also press N to give yourself money if you run out of it while testing.
Thank you! <3