Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

严重问题-苹果手机播放动画时会出现黑线和黑框

$
0
0

@zhb196341 写道:

遇到一个比较棘手的问题 涉及动画时苹果手机上面会出现黑线或是黑框 求解答

var caNd = this.addCardNode(arr3[i], "my", cc.p(x2, y2), tag);
this.setSize(caNd, 1);
var aw = new cc.Node();
var spAw = aw.addComponent(cc.Sprite);
spAw.spriteFrame = this.texRoom.getSpriteFrame("arrow");
aw.setAnchorPoint(cc.p(0.5, 0));
caNd.addChild(aw);
var seq = cc.repeatForever(
cc.sequence(
cc.moveBy(2, 0, 20),
cc.moveBy(2, 0, -20)
));
aw.runAction(seq);

var bgNd = new cc.Node();
var spBg = bgNd.addComponent(cc.Sprite);
spBg.spriteFrame = this.texRoom.getSpriteFrame("mjbg");
bgNd.addChild(nd);
bgNd.position = cc.p(x1, my_p3.getPositionY());
this.plPai.addChild(bgNd, tag + 1);
var seq = cc.sequence(
cc.scaleTo(0.2, 1.5),
cc.scaleTo(0.2, 1.0),
cc.delayTime(1),
cc.removeSelf()
);
bgNd.runAction(seq);

帖子: 4

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>