Problems with Lmove

Description: Internal scripting system of SMBX-38A Engine based on the simple VB-like language
Moderators: Lx Xzit, Yoshi021, 5438A38A, Semi-moderatos, Moderators

Omega02 M
Topic author, Our friend
Our friend
Avatar
Omega02 M
Topic author, Our friend
Our friend
Age: 19
Reputation: 25
Posts: 72
Joined: 30 May 2020
Youtube channel URL

Post #1by Omega02 » 8 Jan 2022, 3:04

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-
Attachments
unnamed (1).png

Luna F
Duke
Duke
Avatar
Luna F
Duke
Duke
Age: 19
Reputation: 16
Posts: 102
Joined: 16 Nov 2017
English Pronouns: she/her
Location: Neocosmos
Website Youtube channel URL Twitter

Post #2by Luna » 10 Jan 2022, 1:57

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])
Image Image Image Image

My projects
Image
Image

I support:
Image Image

Omega02 M
Topic author, Our friend
Our friend
Avatar
Omega02 M
Topic author, Our friend
Our friend
Age: 19
Reputation: 25
Posts: 72
Joined: 30 May 2020
Youtube channel URL

Post #3by Omega02 » 26 Jan 2022, 5:37

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?


Return to “TeaScript”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest