Pls help.
Couldn't you use the "on collision" condition?
Develop games in your browser. Powerful, performant & highly capable.
Also, if you are using the platform behavior there's the "is on floor" and "on landed" conditions.