I'm writing a candy crush style game, I'm using a 3d array for the grid, x,y,0 stores the item type in the cell and x,y,1 stores whether that cell is selected or not, when cells gets wiped the cells above get moved down to fill the spaces using a loop that loops through he grid dropping the fruits down.
How can I make the fruits drop down smoothly?
I start the game by dropping the whole grid smoothly down using gravity from the top of the screen but that's just by offsetting the Y value of the grid drawing line, how do I drop each fruit individually???
|