2d games: Camera settings?

So I want to create my 2d platformer game.

I want the game screen so be, dunno, 1024x768. For Mac.

So I went into Photoshop and made a simple 1024x768 background image, for the sky.

Now I go to unity, make a plane, put my image in it, and.......

  • No matter what I do with my main camera, I can't seem to make a 1024x768 screen to just capture the background
  • Everything is dark. Is there a way to disable the lighting system?
  • How come my plane is showing the bitmap like flipped vertically? And I can't rotate the plane by its Z axis to flip it!

Are you sure you want to limit it to specifically 1024x768? Especially on a Mac, where the default aspect ratio for 90% of users is 16:10 or 16:9, not 4:3. Since you're using a 3D engine, it's more typical that a game will scale to any arbitrary resolution.

Anyway, see here for making a background image using a GUITexture.

make the plane a child of the camera, and move the plane behind the level. Problem solved, then if you scale the image to support 16:9 ( so make each x or y scale number a multiple of the respective ratio).

Everything is dark. Is there a way to
disable the lighting system?

You’ll have to use the ‘Unlit > Texture’ material (this can be set in your material, in the inspector pane). This will make sure the material will ignore the lighting system.

How come my plane is showing the
bitmap like flipped vertically? And I
can’t rotate the plane by its Z axis
to flip it!

Also in the material’s settings in the inspector pane, you can modify the ‘Tiling’ values (both of them set to 1 by default). You can try setting either the X or Y value (or both) to -1. The fact that this is necessary depends on the way the UV coordinates are set in the object you’re using. If you’re using Unity’s built-in plane object, there’s nothing you can change about this, so you’re obliged to modify this setting.