@efares wrote:
I have a PlayScene with an obstacleLayer in it like this:
onEnter: function () { this._super(); this.initPhysics(); this.gameLayer = new cc.Layer(); // Add the playScene layers this.gameLayer.addChild(new BackgroundLayer(), 0, tagOfLayer.background); this.gameLayer.addChild(new TopLayer(), 0, tagOfLayer.topLayer); this.gameLayer.addChild(new ObstacleLayer(this.space), 0, tagOfLayer.obstacleLayer); this.gameLayer.addChild(new AnimationLayer(this.space), 0, tagOfLayer.animation); this.addChild(this.gameLayer); this.addChild(new StatusLayer(), 0, tagOfLayer.status); this.scheduleUpdate(); }
And my obstacleLayer is very close to Parkour Tutorial Chapter 8
The obstacles (rocks and bomb) are displaying perfectly fine when I run my game on web like this:
but the rocks and bombs are not displaying when I run it on my android device or iOS simulator. I know the obstacles ARE being loaded on the scene but I'm guessing they are being rendered behind the background layer? I tried playing around with it but no luck
![]()
Has anyone come across this issue before? Any idea why this happens?
Let me know if you need more source code to help me debug this issue.Thanks in advance!
Posts: 1
Participants: 1