PcoWSkbVqDnWTu_dm2ix
Controlling the Player's Camera
Part 1 - Getting Started
Controlling the Player's Camera
Part 1 - Getting Started

The player’s view of the world is represented by a Camera object. Camera behavior can be changed to suit your game in a variety of ways. For example, the camera can react to events in the world, such as shaking when a monster walks by, or placed to the side of a player such as in an old school side-scroller.

Creating a First-Person Camera

A first-person camera is a view where the camera stays locked with the character’s head, which is more accurate to real life. It’s common in shooter and story games where the goal is to make the player feel immersed in the world.

First Person Camera
Classic Roblox Camera

In Studio, the StarterPlayer object contains a number of properties that will affect the player’s camera. The CameraMode property determines how the camera will behave.

  1. Select StarterPlayer.

    alt

  2. Change CameraMode to LockFirstPerson. This will ensure the player’s camera doesn’t move away from their head.

    alt

  3. Playtest to see the first person camera in action.


Next Page Creating a Side-Scrolling Camera