Game Development Reference
In-Depth Information
fields. Provided that both position and anchor point are both set to their default values of
0, 0, (scale being 1, 1 and rotation being 0), this will make the gradient fill the entire layer.
See Figure 2-22 for reference.
Figure 2-22 . Gradient node content size set to 100% to fill the entire layer
Because the Level1 layer is likely wider than the screen, you may want to zoom out to see
the entire layer to confirm this. The Zoom In, Zoom Out, and Reset View commands are
found in the Document menu—though the keyboard shortcuts Cmd +, Cmd - and Cmd 0
are far more convenient to use. You can also pan the layer around by holding down the
Cmd key and dragging the stage with the left mouse button.
Feel free to experiment with the CCNodeGradient properties before moving on. For
instance, change the gradient colors and the Vector property that determines the direc-
tion of the gradient. Doing so will also help you to better see the early version of the
scrolling effect you'll be implementing in the next chapter.
Creating a Sub File Reference
Search WWH ::




Custom Search