Game Development Reference
In-Depth Information
4.
Next, we need to start filling out the Sprite layer. This is the easy part. Follow the
example in Figure 6-9.
Figure 6-9. The Sprite layer (layer 1) filled out with sprites
5.
The sprite layer is now complete. Now, we can export both layers to use in our game.
Saving the level .FMP file
The next step is to save the file as level1.FMP . This will save a file with both the created maze
data and the tile sheet together, so you can go back in later to edit or update it.
Exporting the level from Mappy
We are going to export the background (layer 0) and sprite (layer 1) layers separately. There is
an option in the Mappy Custom menu called Export For ActionScript. This will export the current
selected layer as the 2D array we need for our level map data.
Exporting the background layer
Here are the steps for exporting the background layer.
1.
The background layer (layer 0) should already be selected. If it is not, select it from the
Layer menu.
Search WWH ::




Custom Search