Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

Awesome example! But one quick question, how do you apply gravity on that script?

Thanks! It is a Kinematic Body. So you have to increase it's y position.
Or use a Rigid Body instead. Here is a good article about choosing between those 2:

https://godotengine.org/qa/21169/