残影

2015-12-14 0 323
残影
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)

遇见资源网 lua 残影 http://www.ox520.com/14737.html

残影
上一篇:

已经没有上一篇了!

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务