Hope everyone is having a fantastic day so far!
I'm creating a word game which is going great, I can select a word then click submit to see if it exists, if it does those letters (actually game objects) are destroyed. When these letters are initially created I loop through an array of hard coded positions to spawn them in place (probably not the best way to do this).
Here is the challenging part, how to get the letters above the letters that were destroyed to drop down (for example in the image below the U, D in the first column to land on top of the bottom L).
I'll eventually use translate to move the letters (or a tween) but for now I need help figuring out how to manage the system that will control these objects to fall in place.
I'm starting with a 3 arrays (9 spots to learn) which are for the rows of game objects (letters), Im using arraymaker)):
The first array is 1 (which has 3 items): 0,1,2
The second array is 2 (which has 3 items): 0,1,2
The third array is 3 (which has 3 items): 0,1,2
I now have 3 array's with 3 game objects in each.
1: 0,1,2
2: 0,1,2
3: 0,1,2
This is where I have no idea what to do from this point forward can anyone help?