hi all,
i'm struck in the middle of a small game which i am doing.
i have a number of boxes(with same name)if i click on the particular box it has get destroyed and the box which is present above it should fall descending on it.
I have destroyed by clicking on it but could not make other boxes to fall down.
i tried like
+For each Sprite, order by sprite.Y descending
-> Stop loop
-> ScrollY to lerp(scrolly,Sprite.y, dt*Speed)
but all my images are going up not falling down as naturally.
EX:
[1]-- think this is a box
[2]--think this is a box
[3] "
[4] "
[5] "
if i click on box[3] the above box should fall down on box[4] and should display like
[1]
[2]
[4]
[5]
may be i have used the boxes with same name is this making to move all at a time..
Thanks in advance