

Go to the Details panel and look under the Classes section. Now, you need to specify which Pawn class will be the default. Click the Add New button and select Blueprint Class.įrom the pop-up window, select Game Mode Base and name it GM_Tutorial. Go to the Content Browser and make sure you are in the Blueprints folder. More importantly, the Game Mode determines which Pawn the player will use. For example, in a multiplayer game, you would use Game Mode to determine where each player spawns. Creating a Game ModeĪ Game Mode is a class that controls how a player enters the game. You accomplish the first by creating a new Game Mode class. Spawning the Playerīefore the player can control the Pawn, you need to specify two things: Click Compile and go back to the main editor. This is what you should see (you can hit F inside the Viewport to focus on this if you don’t see it): Click on the drop-down located to the right of Static Mesh and select SM_Cube. To display the red cube, select the Static Mesh component and then go to the Details tab. If you don’t do this, the next added component will be a child of Camera.Ĭlick Add Component and select Static Mesh. Rotate the camera down to -60 degrees on the Y-axis.Ī red cube will represent the player so you will need to use a Static Mesh component to display it.įirst, deselect the Camera component by left-clicking an empty space in the Components panel. Next, activate the rotation manipulator by pressing the E key. If you have lost sight of the camera, press the F key to focus on it. It is located under the Transform section in the Details panel. Alternatively, you can type the coordinates into the Location fields. With the camera component selected, go to the Viewport tab.Īctivate the move manipulator by pressing the W key and then move it to (-1100, 0, 2000). Click Add Component and select Camera.įor the camera to be in a top-down view, you need to place it above the player. To create a camera, go to the Components panel. In the Content Browser, double-click on BP_Player to open it in the Blueprint editor. You will create a camera that looks down towards the player. Attaching a CameraĪ camera is the player’s method of looking into the world. However, you will be implementing your own system of movement so the Pawn class is sufficient. It even includes a movement component by default. Note: The Character class would also work.
