Game Development Reference
In-Depth Information
local move = cc.EaseBounceOut:create
(cc.MoveTo:create (0.6, cc.p(gem:getPositionX(), y) )
)
local action = cc.Sequence:create
(cc.DelayTime:create(delay), move,
cc.CallFunc:create(onCompleteMe))
gem:runAction(action)
end
Again, we only fire the final callback once all gems have collapsed. This final callback
will run another check for matches, as we've seen earlier, starting the whole process again.
Search WWH ::




Custom Search