Game Development Reference
In-Depth Information
You should now place one or more gear and saw objects in the
Level1.ccb
. But first,
drag and drop a Node object from the Node Library View onto the
CCPhysicsNode
.
Rename the new node to
gears
and
saws
or something similar. This allows you to change
the draw order of the gear and saw nodes all at once. You will also be able to hide the
gears and saws in the Timeline, which becomes increasingly important the more nodes
you add to the level.
You can then drag and drop gear and saw objects from the Tileless Editor View into the
gears and saws
node. For the topic's graphics, I also recommend you change the
draw order of the
gears and saws
node so they are drawn behind the chocolate bor-
ders. Drag and drop the
gears and saws
node so it is above the borders node in the
Timeline. It might look like what is shown in
Figure 5-7
.
Figure 5-7
.
Gear and Saw objects added to the Level1.ccb
Just for kicks: while you're in the
Level1.ccb
, press the Play button in the Timeline
Controls. You'll notice not only that the level-entry doughnut animates, but the gear and
Search WWH ::
Custom Search