添加粒子效果

来源:互联网 发布:手机墙壁软件 编辑:程序博客网 时间:2024/06/16 11:54
/* * 添加粒子效果 * */var particleSystem=new cc.ParticleSystem("res/1.plist")particleSystem.setPosition(this.getPosition())this.getParent().addChild(particleSystem,1)
用粒子编辑器做出效果,导出plist文件
使用上面三句话加入到程序中,即可
0 0
原创粉丝点击