Build path: For a fast 2D platformer prototype, combine 2D Player Controller, Smooth Camera Follow 2D, 2D Platformer Mechanics, Health System, Pickup / Collectible, and Screen Fader. The packaged option is the 2D Platformer Starter Kit.
A platformer does not need a giant framework to feel playable. It needs responsive movement, a camera that follows without jitter, a damage loop, a pickup loop, and a clean transition between levels. Add those in order and you have a slice that can be tested in minutes.
The Minimum Script Stack
2D Platformer Stack
| Need | Script | Note |
|---|---|---|
Run and jump | PlayerController2D | 2D Player Controller handles Rigidbody2D movement, jumping, coyote time, and jump buffering. |
Camera follow | CameraFollow2D | Smooth Camera Follow 2D keeps the player framed with offset and smoothing. |
Advanced moves | PlatformerMechanics2D | 2D Platformer Mechanics adds wall jump, wall slide, dash, and double jump. |
Damage state | HealthSystem | Health System gives the player and enemies a shared damage API. |
Collectibles | Collectible | Pickup / Collectible handles coins, health pickups, keys, and score objects. |
Scene transitions | ScreenFader | Screen Fader hides scene-load cuts and makes restarts feel intentional. |
Setup Order
- Create a Player GameObject with Rigidbody2D and BoxCollider2D.
- Attach 2D Player Controller and assign ground-check references.
- Add 2D Platformer Mechanics only after basic movement is stable.
- Attach Smooth Camera Follow 2D to the Main Camera and assign the player target.
- Add Health System to the player and enemies.
- Create collectible prefabs with Pickup / Collectible.
- Put Screen Fader on a UI Canvas for scene transitions.
Common Mistakes
- Ground check too high: Put the ground-check transform at the feet, not the sprite center.
- Camera jitter: Let the camera follow in LateUpdate and avoid moving the player Transform manually while also using Rigidbody2D physics.
- Too many mechanics at once: Tune run and jump first, then add dash, wall jump, or double jump one at a time.
- Collectibles without feedback: A pickup should change score, play a sound, or trigger UI. Otherwise the loop feels unfinished.
When to Use the Kit Instead
Use the 2D Platformer Starter Kit if you want all of these scripts already grouped as a foundation. Use individual scripts if your project already has movement or camera code and you only need one missing piece.
For the full catalog of scripts across genres, start with Free Unity C# Scripts and Game Systems.