清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
function CameraSO:ghosting(heroSO, timeInteval)
local ghostSprite = heroSO:getGhostSprite():addTo(self.ghostNode)
local x, y = heroSO:getPosition()
ghostSprite:setPosition(x, y)
local ac1 = CCMoveTo:create(timeInteval*1/24, ccp(x, y))
local ac2 = CCCallFunc:create(function ( )
ghostSprite:removeFromParentAndCleanup(true)
end)
local ac = transition.sequence({ac1, ac2})
ghostSprite:runAction(ac)
end
local ghostSprite = display.newSprite()
ghostSprite:setDisplayFrame(self.sprite_:getDisplayFrame())
ghostSprite:setOpacity(130)