Galv Superman Ability--Flight Time Limit?

I copy/pasted the version from Project 87 into my project and it works. Thanks for the help again!

EDIT: Okay, one last issue--hopefully the last one, period--but after you land you have to press the button one more time, or you'll still be able to move all over the map even though the sprite is on the ground again. You also have to double-press to start flying.
OK, I have an updated version. Hopefully, that solves the problem.
Basically, I moved back to use "force_land" function(it shall set all the switches correctly to avoid passthrough issues), and with more checks to avoid this function itself causes movement freeze.

Original thread: https://forums.rpgmakerweb.com/threads/galv-superman-ability-flight-time-limit.133976/