This Issue is about the difference between world and stage. I found that game.world.add(sprite) differs from game.stage.add(sprite)--------the 2nd method will not show the sprite on screen, So, what's the difference? I'm confused……
Stage is the root display container. World is the root Group and the first child of the Stage.
Both methods should display the sprite, unless the sprite is offscreen or covered by another object. Only World objects are affected by the camera position.
This Issue is about the difference between
world
andstage
. I found thatgame.world.add(sprite)
differs fromgame.stage.add(sprite)
--------the 2nd method will not show the sprite on screen, So, what's the difference? I'm confused……