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)
用户登录
还没有账号?立即注册
用户注册
投稿取消
文章分类: |
|
还能输入300字

上传中....