Create a Character

There are many ways you can create a Character in PAT. Here we’ll cover the 3 recommended ones.

Copy from templates

PAT provides a range of templates to simplify the character initialization process. These templates include different functional characters and enemies commonly seen in 2D/3D action games, equipped with various weapons and abilities. With just a few steps, you can have a playable Character and start exploring PAT's unique Action State system to create your own signature combat abilities.

1

Find a Character you like from the demos

In demo scenes, you can find all the characters in [===GamePlay===].

2

Locate its prefab

Select the character you want to use in the scene Hierarchy. Right click on it and choose Prefab/Select Asset.

3

Duplicate the prefab

Copy and paste the selected prefab in Project panel.

4

Rename it to whatever you want your Character to be called


Create from scratches

You can also create a Character from scratches. This is not the preferred way since there are many tedious steps before you can have a playable character. Unless you are very confident about your understanding of PAT’s system, we do not recommend using this approach to create characters.

[PAT Character structure reference]

[NewCharacter] Add a Character component Add a Character Locomotion Base component Add a Locomotion Motor component corresponding to your game type Add a capsule collider or any other components required by your Motor

  • MoveSets

    • LocomotionSet Use LocomotionSet Prefab here

    • NewMoveSet Add a Move Set component

      • New Action 1 Add an Action State component

        Add multiple Modifier components you want to define your action behavior

      • New Action 2

      • ...

  • ModelContainer

    • Character Model

  • Hurt Box Add an Effect Receive Box component

    Add a Box Collider component

    Add a Rigidbody component

Example: one available character hierarchy

Last updated