Page 1 of 1

Problems with Lmove

Posted: 8 Jan 2022, 3:04
by Omega02
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-

Posted: 10 Jan 2022, 1:57
by Luna
As far as I see, you didn't set a delay for the two events, making them move up and down at the same time.
Personally, I would just use events to fix this proble.

Events can be called through

Code: Select all

call tcreate("Eventname", [Delay in frames])

Posted: 26 Jan 2022, 5:37
by Omega02
DerEric wrote:As far as I see, you didn't set a delay for the two events, making them move up and down at the same time.
Personally, I would just use events to fix this proble.

Events can be called through

Code: Select all

call tcreate("Eventname", [Delay in frames])

I tried that but the game just slows down and crashes. Can I give you the level so you can show me how to fix that?