This is an improved version of the Larry Koopa boss battle for my SMBX episode Super Mario Endgame. I do need your help with the script to move the floor up and down (similar to New Super Mario Bros. Wii World 1-Castle boss battle). I made Larry so that he needs to be jumped on 5 times to defeat him by changing his health from 15 to 25. As you can see in the images below, I need the floor to move when he has been stomped 2 out of 5 times. But the moving floor just keeps going without switching directions within a set period of time. How do I make the floor move up and down and switch directions within a set period of time using the script.
https://www.youtube.com/post/UgkxXQPUVc1JMb18KgltvEnZQ0aQD2lKTvW-










