Character controller is the most vital part of any game. If the controller is not good enough, your player movement will be affected and in turn the gameplay experience. In this post, we are going to see the best Unity 2D character controller asset on the Unity asset store that can be readily used in any 2D games. Also we will look into how to use unity standard assets to make a character controller.
Unity 2D character Controller asset
MJ Player movement asset is an all-in-one character controller for Unity. It is not only useful for 2D games but can be used for 3D also. The options available are plenty with this asset. You can control all the aspects required to make a good 2D controller experience. The preset option to select the type of controller is very handy. You can switch between using a keyboard or a controller with just a drop down menu.
You can set the following features of your character
There are preset options available for humanoid and ball. This sets up your humanoid character within minutes.
Advanced character movement 2D is geared toward 2D platformer games. It comes with all the tweaks that is needed to make a full character controller for a platformer. The asset includes a demo sample for understanding how it works. Its very simple to setup and get going.
- Horizontal movement, adjustable speed and friction
- Jump, long jump, double jump, wall jump
- Crouch, run, walk, wall surfing
- Different dust effects for jump, double jump, walk, land
This one is little different from the normal character controller. Easy character controller uses ray-cast for player movement compared to normal physics used by other controllers. As this asset doesn’t use the default physics system, you can bend the rules of physics with this asset. This is perfectly good for anyone making a game based on custom 2D physics.
- Walk/run, crouch and attack mechanics included in the script.
- Controllable jump. There are different level of jump that can be adjusted from the inspector.
- Animation handling. Just drag and drop the sprites to respective tabs and you are good to go.
- The document is well made to explain all the features.
- Easily configurable.
Check out other best Unity assets for game development.
Using Unity standard asset for 2d character controller
The default character controller is also good enough for new developers. Here are the steps to download and use the 2D character controller
Step1: Get the standard assets from this link and import to your project.
Step2: Import 2D and cross-platform input assets into your project as shown in the image below.
Step3: Add the 2D sprite to your hierarchy.
Step4: Add “platform character 2D” and “Platform 2D user control” scripts to your character.
Step5: Press play and adjust values to sync with animation.
While using the standard assets, you need to take care of the animation part your self.