Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Problem with GTween — Gideros Forum

Problem with GTween

intellipro21intellipro21 Member
edited December 2014 in Bugs and issues
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

Sign In or Register to comment.