用户登录
用户注册

分享至

残影

  • 作者: 抵扺
  • 来源: 51数据库
  • 2022-08-17
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)
软件
前端设计
程序设计
Java相关