This is a very well executed game idea! I'd love to see this game get expanded on in the future! :)
If I had any critiques, the attacks range seems a bit short. Personally, I would probably consider enabling a button press command once the player is on a platform that can toggle the players movement in which the player sprite becomes stationary and the platforms movement is controlled by the players input commands, which would basically eliminate the need for an attack. Of course, just expanding the attacks range would probably be just as good.
No matter where you go with the idea, I'd like to see more of it. Well done! :)