3D Ellen

Checked with version: 2018.1

-

Difficulty: Beginner

The Ellen Prefab is the Player character for the Game Kit. She can walk, run, jump and melee.

Standard movement controls

Motion PC Controller
Move W, A, S, D Left stick
Jump Space A
Melee Left Click on Mouse X
Camera Mouse Right stick

Ellen is put together using an Animator, Character Controller and Damageable script as well as a number of custom scripts.

Player Controller

The** Player Controller** script holds all the information for how Ellen behaves in the game. The exposed settings here mostly control movement but you can tweak any of the variables within the script itself by opening it.

If you change any settings, the changes are only applied to the Prefab instance in that Scene. If you would like the changes to happen across all levels in your game, click Apply at the top of the instance for the change to be applied to the Ellen Prefab.

  • Max Forward Speed: Default Setting: 8 How fast Ellen can run.

  • Gravity: Default Setting: 20 How fast Ellen falls when in the air.

  • Jump Speed: Default Setting: 10 How fast Ellen takes off when jumping.

  • Turn Speed: Default Setting: Between 400 and 1200 How fast Ellen turns. This varies depending on how fast she is moving. When stationary, the maximum is used because you want Ellen to turn faster. When she’s not running at Max Forward Speed, the minimum is used because it’s harder to make sharp turns at speed.

  • Idle Timeout: Default Setting: 5 How many seconds before Ellen starts considering random Idle poses.

  • Can Attack: Default Setting: false Whether or not Ellen can attack with her staff. This can be set externally.

  • References: These are all the references the script requires to function. They are entirely found on the Ellen prefab and by default you should not need to adjust them.

    • Melee Weapon: Damages enemies when Ellen swings her staff.

    • Camera Settings: Gets the rotation of the current camera so that Ellen faces the correct direction. Note: This is the only reference which is not part of the Ellen prefab. It should automatically be set to the Camera Settings script of the CameraRig GameObject when the Prefab is instantiated.

  • Footstep Random Audio Player: Plays a random sound when Ellen takes a step.

  • Hurt Random Audio Player: Plays a random sound when Ellen gets hurt.

  • Landing Random Audio Player: Plays a random sound when Ellen lands.

  • Emote Landing Player: Plays a random vocal sound when Ellen lands.

  • Emote Death Player: Plays a random vocal sound when Ellen dies.

  • Emote Attack Player: Plays a random vocal sound when Ellen attacks.

  • Emote Jump Player: Plays a random vocal sound when Ellen jumps.