Although it's weird, it's a working (and easy) platformer engine. The script can only detect collisions from top, not the sides, however. Feel free to use!