Good day, I would like to hear how to implement a dash. The idea is that the dash should be almost instantaneous, meaning the character quickly gains speed and also quickly loses it at the end of the dash. I should have the ability to adjust the speed of the dash and the distance it covers. What is the best way to implement this?
One step at a time, just like any other feature.
Dashing is extremely well-covered in all its forms in Youtube tutorials.
Two steps to tutorials and / or example code:
- do them perfectly, to the letter (zero typos, including punctuation and capitalization)
- stop and understand each step to understand what is going on.
If you go past anything that you don’t understand, then you’re just mimicking what you saw without actually learning, essentially wasting your own time. It’s only two steps. Don’t skip either step.
Imphenzia: How Did I Learn To Make Games: