Detailed Setup

  1. Download and import the asset package as described in the Quick Setup section.

  2. Choose or create the GameObject that you want to use as your player character.

  3. Add the following components to your player character GameObject:

    • Rigidbody2D

    • CapsuleCollider2D

    • Animator

    • PlayerMain script

    • PlayerInputManager script

  4. If you want to use the default animations provided in the asset package, add the Animator controller found in the Animations folder to the Animator component on your player character and add a Sprite Renderer component to your player character and set the sprite to a capsule shape.

  5. If you want to replace the default animations with your own, follow these steps:

    • Duplicate the Player AC animator controller found in the Animations folder.

    • Replace the animations within the duplicated animator controller with your custom animations.

    • Assign the new animator controller to your player character's Animator component.

  6. Now, you need to configure the PlayerMain script to work with your custom character. To do this, select your player character GameObject and locate the PlayerMain script in the Inspector.

  7. Set the necessary variables in the PlayerMain script, such as the PlayerData. Refer to the Player Data section in this documentation for more information on configuring these settings.

  8. Make sure that your Rigidbody2D's physics material set to Zero Friction physics material.

Last updated