🏃 Want tighter, more responsive character controls in your 2D game? In this Unity 6 tutorial, I’ll show you how to add a Run button mechanic — so your player can switch between walking and sprinting at the press of a key. We’ll also wire it up to animations so your character feels alive when running!
We’ll cover:
⚡ Setting up a Run input in Unity’s new Input System
🎮 Writing clean movement code for Walk vs. Run speeds
👟 Animating your Run state
By the end, you’ll have a player who can walk, sprint, and animate fluidly — a foundation for any polished platformer, action RPG, or Metroidvania.
🔗 Assets Used (Free for Commercial Use!)
Character → Brullov’s Generic Character v.0.2
https://brullov.itch.io/generic-char-asset
Building Decorations → Brullov’s Castle of Despair
https://brullov.itch.io/2d-platformer-asset-pack-castle-of-despair
Cave Tilemap → Szadi’s Pixel Fantasy Caves
https://szadiart.itch.io/pixel-fantasy-caves
Kobold Warrior → Mattz Art’s Kobold Warrior Pack
https://xzany.itch.io/kobold-warrior-2d-pixel-art
💡 Support the Channel
Want more tutorials (2 per week!), early access, and source code? Join the community here:
👉 / nightrunstudio
Or become a YouTube member!
🎹 Music
Chasing Shadows – Night Run Studio
From the Willard soundtrack
⚡ Perfect for: Unity 6 Beginners, 2D Pixel Art Devs, Platformers, Metroidvania Movement Systems, Character Animation Tutorials
Voir sur youtube