Game Development Reference
In-Depth Information
32x2, and so on. Verify that you updated the node positions correctly by selecting all
nodes from center down to top-right. This should give you the same circular layout as
shown in Figure 10-3 . Zoom in (Cmd +/-) to better see the positions of the nodes relative
to each other.
Figure 10-3 . The eight circumference nodes are positioned and distributed evenly in a circle
Notice that you now have a total of nine child nodes, each with physics enabled, distrib-
uted evenly on the player's sprite. Also, note that the player sprite itself (the root node)
does not have physics enabled.
One more thing to take note of: if you switch to the Item Physics tab, select a circumferen-
ce node, and then keep selecting the currently selected node and a neighboring circumfer-
ence node, you'll see the collision radius of the neighbors do not overlap. Instead, there's
a tiny gap in between them, as shown in Figure 10-4 . This gap is crucial!
Search WWH ::




Custom Search