Guys, I m facing little problem with GTween ,I want to do something like
@jdbc has done in his games like "Halloween Mania" and
@thanhquan1512 has done in "Diamond Mine"..
problem is...
after destroying matched items, we shift down previous items in the same column , I can do that without any effect but I want to do it with effect like they are falling from above just like in these games I mentioned above.
and yes I am not using box2d.
->I do something like this at the time of generation new item
GTween.new(newItem, 0.5, {y = newItem.destination_y}, {ease = easing.inOutCircular})
->and at the time of shifting down inside the loop.
GTween.new(itemTable[i][k], 0.1, {y = itemTable[i][k].destination_y+50}, {ease = easing.inOutCircular})
*itemTable[i][k] holds the item to be shifted
*destination_y is the new co ordinate for that item,
but even after doing this the falls with animation but goes back to current position , not able to understand what I am doing wrong..
Comments
You should think of GTween as just an automatic way to set up an ENTER_FRAME event.
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
https://deluxepixel.com
and even if I comment the Gtween at the time of creation of new Item and keep open for existing items only still I m having same problem at the time of shifting thier position.
http://www.iprospl.com/