Game Development Reference
In-Depth Information
Figure 14-29 . Instantiate an iPR1 Prop object, add it to the root Scene Graph, and add it to the CurrentCast
List<Actor>
To put a moss rock at the top of the screen, I used the 0,-150 screen coordinates in
my constructor method call. Now use the Run Project work process to take a look
at the results, which are shown on the left in Figure 14-30 .
Figure 14-30 . Run the project; the Prop iPR1 is shown at the left, and iPV1 PropV mirrored object is shown at the
right
You can also “flip” large props, creating some very cool effects. Create an iPV1 de-
claration and instantiation, as seen in Figure 14-31 , and create a PropV object, which
will mirror the moss rock, along the X axis. This can be seen on the right side of Figure
14-30 . We've made a lot of progress in this chapter using fixed sprite Prop class capab-
ilities.
 
 
 
Search WWH ::




Custom Search