O'Reilly logo

Collaborative Online Game Creation by Naveena Aswadhati, Nanu Swamy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Masking Example

This last example demonstrates the power of AS2. Although GameBrix provides tasks that simplify most operations, users can leverage the power of AS2 commands to build virtually any kind of Flash game.

Start a new game and add two sprites that were used in Chapter 6 labeled CG06_cave_bg and CG06_money, as shown in Figure 8.12.

Figure 8.12. Masking example sprites.

Click the Build Objects tab and then the New Object button to create the following two objects shown in Figure 8.13.

  • Create an object named maskObject, and attach the sprite named CG06_money to it.

  • Create another object named imageObject, and attach ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required