Tutorial: Getting Started - Player start Overview This tutorial teaches you how to place a prefab Game Camera with Character control input and how to run the game level. * This tutorial requires you use the SamplesProject supplied with the Lumberyard.
Place a game camera Before you can play the level, you must create and place a game play camera with character control and specify a start point. Lumberyard contains a default game play cameras (with supporting input controls) to help you 'quick start' building a game play level. 1. From the Main Menu, open the Database Editor by selecting View / Open View Pane / Database View. You can also select the Database View Editor icon on the Editor toolbar. Main Menu
Editor Toolbar
2. The Database Editor for Prefabs has the following areas
1. Database tabs - Database types to view and manage: 2. Editor toolbar - Tools to open, save, add, remove Prefabs 3. File tree view - View of the Prefabs available for use
3. Select the Prefabs Library tab. 4. Select the
Load Library icon on the toolbar.
5. From the directory listing, select prefabs\character_controllers.xml.
6. In the file tree view, select Sphere_Controller(1) and drag it into your Perspective Viewport.
7. This prefab (Sphere_Controller) provides the level with a 3rd person camera, character, and input control. The location of the Sphere_Controller in the map is also determines the default start point within the level. Now that you have your game camera and character controller set up, you can use Game Mode to run the level and move around in the space.
Switch to Game Mode
Game Mode is a good way to test out the level you’ve created. 1. To switch to Game Mode, do one of the following:
From the main menu, choose Game, Switch to Game.
On your keyboard, press
.
2. You are now running your first Lumberyard level. 3. To navigate, use the following controls:
Move forward/back –
Strafe left/right –
and
Turn left/right –
Mouse slide left/right
Jump -
Camera Look -
and
keys keys
Mouse movement
4. To exit the level in game mode and return to edit mode, press keyboard.
on your
You have successfully set up your game camera with player controls and tested them out in your level.
Related tasks and tutorials Move onto the next tutorial in the Getting Started tutorial series:
Tutorial: Designer objects
We’d love to hear from you! Head to our Tutorial Discussion forum to share any feedback you have, including what you do or don’t like about our tutorials or new content you’d like to see in the near future.