here is a tutorial on how to make a collision perfect platformer game

https://youtu.be/l67NzV4iJPI