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

Cocos JS PhysicsSprite 问题

$
0
0

@luguangfox 写道:

之前用Cocos JS 3.10,实现cc.PhysicsSprite,在ctor 方法里实现
, ctor: function (node, space) {
this._super();
this.addChild(node);
或者
ctor: function (spriteFrameName, space, chipName) {
this._super();
this.died = false;
this.spriteFrameName = spriteFrameName;
cc.log(this.spriteFrameName);
this.space = space;
var sprite = new cc.Sprite(this.spriteFrameName);
this.addChild(sprite);

再升级后3.13.1 后无法添加 addChild
只能在外部addChild??

帖子: 1

参与者: 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>