A series of C# scripts for Unity that create and define a prototype for a platformer controller. I pulled this from one of my prototype games, but have never really used it.
Note: Unity's new Input System package is required. If this is not desired, please make changes in PlayerInputHandler.cs
.
- Attach the
CharacterController2D
,PlayerInputHandler
, andPrototypePlayer
scripts to a game object. - Create a new
PlayerData
object in your Assets directory. Adjust settings - Attach this object to your
PrototypePlayer
- Configure your layers, etc. so that things collide!
- Voila! You now have a basic platforming character.
I didn't have time to clean this up, so this is just released as is. I don't mind how you use it :)
The CharacterController2D
script is a modified version of prime31's own CharacterController2D, which may be found here! (They also have some more thorough explanations on how to configure the character controller.)