A downloadable asset pack

This is a small demo project for a 2D platformer controller made with Unity that anyone should use as-is or migrate to another project; it currently doesn't have any documentation within it, although it is an all-in-one controller. All the code is in a single script (well, kinda); it's about 180 lines of code. The controller features support for slopes, ducking/crouching, variable jump height, ladder climbing, "coyote time," a "pre-jump timer," animations, and one-way platforms with the use of an additional, small script;

  • Variable Jump Height - The players jump height depends on how long the player holds the jump button
  • Coyote Time - if the player presses the jump button slightly too late when jumping off of a ledge, they will still jump
  • Pre-jump Timer - If the player presses the jump button slightly too early before hitting the ground, they will jump when they hit the ground

The artwork used in this project is from the Sunny Land Forest Assets on the Unity Asset Store. This project also uses the old input system.

Download

Download
2D Platformer Controller Demo.zip 110 MB

Development log

Comments

Log in with itch.io to leave a comment.

I know this is much to ask, but could you please make a tutorial on how to use this controller? Thank you in any case

Deleted 2 years ago

feels so good, thanks man i will study the code

Thank you, I appreciate it a lot