i am going to do something close to that but just have it to any collision on the ground tile makes it idle animation
I wish you luck dude!