In this tutorial, you'll learn how to implement a roll attack feature, inspired by no other than... Donkey Kong Country.
We'll cover:
Adding a roll animation sprite
Implementing roll mechanics with spacebar input
Creating roll momentum and edge-rolling physics
Handling collisions during rolls
Using rolls to defeat enemies