New Project Setup


This tutorial shows how to create an effect similar to the Actraiser spinning Mode-7 sequence which plays before each of the platformer levels. To see this in action, see the following video: [embed][/embed] Fortunately FlatRedBall supports 3D cameras, so the effect is fairly easy to create. We will begin with an empty project to show how this effect can be created from scratch. My project is called ActraiserMode7.

Creating a Screen

Normally we use the Glue Wizard to set up a project. In this case we won't use the Glue Wizard because we won't be creating a full game. Rather, we'll just create a single Screen which is not a typical FRB Screen - it won't have any collision, entities, or even any UI. Since this Screen will be fully self-contained, everything we do in this tutorial can be done in an existing project too. First, we'll add a new Screen:

  1. Click the Add Screen/Level button in the Quick Actions tab

  2. Enter the name Mode7Screen

  3. Select the Empty Screen option

  4. Click OK

Camera Setup

Next we'll make sure our Camera is set up properly.

  1. Click the Camera icon in the toolbar

  2. Set the resolution to 256x224 to match the SNES resolution

  3. Keep the perspective as 2D - even though our game will use 3D perspectives, in a real game the 3D perspective is temporary. We will use a 3D camera in this Screen, but we want other screens to be 2D.

  4. Change the Texture Filter to Point

  5. Change the Scale to a larger number such as 300% or 400% so the window is large enough to see clearly

Adding the WorldMap Sprite

Next, click the Add Object to Mode7Screen and add a Sprite.

Finally, set the SpriteInstance's Texture property to OverworldMapImage.

Our game now displays the Sprite (or at least part of it) if we run it.


Our game is now set up to display the world map. The next tutorial will add the Camera behavior to mimic the behavior in ActRaiser when starting a new game.

Last updated