- Home /
moving down blocks
Hey guys, hope y'all having a great time.
I am making a game where I am making rows of numbers. (please refer to the image) Your goal is to select specific numbers. Upon successful removals the blocks get deleted and the blocks above them move to the empty spot.
After every succesful removal each bloack checks for a block below using a raycast to check if there is any block below if not move down else don't move down.
The issue is when the blue blocks get removed (in the image), all the blocks above it should move down. But only the immediate ones move down. Because 6 and 8 in the top row have blocks below them which have not started moving yet.
Putting a delay works sometimes but does not yield accurate results everytime. Can you guys please suggest me which approach should I use to make it work properly. I hope my question makes sense. Thanks in advance.