![unity super player controller unity super player controller](https://www.sellanycode.com/system/assets/uploads/products/SuperWingsPlanesShooterUnity_sellanycode_screenshot_1611918059.jpg)
- Unity super player controller how to#
- Unity super player controller full version#
- Unity super player controller install#
- Unity super player controller update#
Unity super player controller update#
Now if you want the player to be able to use your new mechanic you need to update your player controller (your class extending the TopDownCharacterController class / the TopDownInputController class in the example).Add your new event to the TopDownCharacterController class (simply add a private readonly field and a public getter like the other events).Create a new event for this input in the class by following the existing examples (for a dodge mechanic I think you want your event to extend the UnityEvent 'class' since you want to dodge in a specific direction I would imagine).Edit the Unity's Input asset (located in Sample/Input/Top Down Controller 2D in the example) to add a new input to read.In order to add a new mechanic (something that needs a new input other than the existing ones) you have a few steps to do:
Unity super player controller how to#
In case you want an entity to have an AI you can take a look at some other example controllers ( Scripts/Controllers/TopDownRangeEnem圜ontroler for example) to see how to write your own implementation.Īn entity will also need a CharacterStatHandler component to work since it contains some important values such as the speed and max health of the entity, as well as its attack properties (At the moment the an attack can be both ranged with a gun or melee, and a configuration for those attacks can be created by right clicking in the project hierarchy and selecting Create -> TopDownController -> Attacks -> Shoot / CloseCombat)įeel free to ask questions in the comments if you need help with something.
![unity super player controller unity super player controller](https://cdn-ak.f.st-hatena.com/images/fotolife/b/baba_s/20171124/20171124194639.png)
This packages also uses Unity's tags and layers systems so be careful to properly set those in order for the enemies to behave properly and the bullets to actually hit the right type of entities.įor an entity to be valid it needs at least a script extending from TopDownCharacterController this script will be in charge of creating the events (such as OnMove, OnAttack.) and transmit them to the other components of the system. This packages uses dynamic rigidbodies for the physics and movements and by playing with its values as well as the speed of the character you can achieve different style of movement. This scene and its content should give you a rough idea of how this system works. In order to use this package you should check the example scene located at Sample/Scenes/TopDownExampleScene. Playable with mouse/keyboard or with a controller.Highly customizable stats and power-ups.Reusable scripts between player and enemies.It also contains newer revisions of some parts of the code.
Unity super player controller full version#
The full version include a documentation explaining how to use the package and also how to modify the existing code if needed. This project contains a lot of scripts to allow the user to easily customize the behaviors attached to an entity. This package is compatible with Unity 2019.3 or newer versions.
Unity super player controller install#
The example scene uses Unity's new input system by default as well as cinemachine for the follow camera, you will need to install them via Unity's package manager in order for the example to work properly. This project is a Unity package containing scripts as well as example assets/scene.