Game Development Reference
In-Depth Information
Figure 3-16 . Tileless Editor View shows a preview image of Background1.CCB
Now you can drag and drop the Background1 from the Tileless Editor View onto the
Level1 stage to create a Sub File node referencing Background1.ccb. Then change its
position to 0,0 to align it perfectly with the stage borders. Make sure you set its Name
property to “background” because you'll soon add code to get a reference to the node by
this name. The Name property is on the Item Properties tab in the Details Inspector.
Changing the node's name in the Timeline will not make it accessible by name via code.
Oh, hey! The player's gone. Hmmm...it's probably behind the background now.
Select the player node in the Timeline, and drag and drop it so that it is below the back-
ground node in the Timeline hierarchy. Make sure it doesn't become a child of the back-
ground; it should be on the same level as the background. Figure 3-17 is what the Level1
Timeline should resemble now, with the background node above the player node.
Search WWH ::




Custom Search