sine wave with layer movement in the event editor?

Description: Subforum dedicated to SMBX-38A - a fan-made remake of the original SMBX Engine, made by 5438A38A.
Forum rules: This is official Europan/American community for the SMBX-38A. Suggested to don't post stuff for this engine outside this subforum.
Moderators: Yoshi021, Lx Xzit, 5438A38A, TepigFan101, Moderators

Shadowblitz16
Topic author, Close friend
Close friend
Shadowblitz16
Topic author, Close friend
Close friend
Reputation: 13
Posts: 93
Joined: 15 Aug 2016

Post #1by Shadowblitz16 » 25 Jul 2017, 6:22

does anybody know how to write an expression in the layer movement editor so that it moves blocks in a sine wave?
Image

Yoshi021 M
Moderator
Moderator
Avatar
Yoshi021 M
Moderator
Moderator
Age: 17
Reputation: 82
Posts: 640
Joined: 15 Feb 2016
Location: Yoshi's Island

Post #2by Yoshi021 » 25 Jul 2017, 19:24

You will have to use TeaScript for that.
http://wohlsoft.ru/pgewiki/Functions_(TeaScript)#LMove
Links
ImageImageImage
Image
Image
"Going to University is FUN!" :pardon:

Shadowblitz16
Topic author, Close friend
Close friend
Shadowblitz16
Topic author, Close friend
Close friend
Reputation: 13
Posts: 93
Joined: 15 Aug 2016

Post #3by Shadowblitz16 » 25 Jul 2017, 23:03

can you explain some more?
I'm not sure how to exactly do the sine wave in code

the GaMERDoG M
Count
Count
Avatar
the GaMERDoG M
Count
Count
Age: 13
Reputation: 18
Posts: 264
Joined: 11 Mar 2017
Location: Biysk, Russia
Website

Post #4by the GaMERDoG » 26 Jul 2017, 13:33

Image
#thatoneplasticcorkcollectingautist doesn't like nibbas on his top secret OWOP subworlds.

ImageImageImage

Check out my Artwork Train!
Image
I support
Image
The Great Giana's Adventure
ImageA Super Mario Bros. Adventure 1

Image

Shadowblitz16
Topic author, Close friend
Close friend
Shadowblitz16
Topic author, Close friend
Close friend
Reputation: 13
Posts: 93
Joined: 15 Aug 2016

Post #5by Shadowblitz16 » 28 Jul 2017, 4:39

@the GaMERDoG why post if your not even going to read what other people have posted?

I mean like I get it if the topic is longer then 1 page but this was only 3 posts

1. he already linked that
2. I asked how to do it in code
3. Lmove has nothing to do with sine waves directly

the GaMERDoG M
Count
Count
Avatar
the GaMERDoG M
Count
Count
Age: 13
Reputation: 18
Posts: 264
Joined: 11 Mar 2017
Location: Biysk, Russia
Website

Post #6by the GaMERDoG » 28 Jul 2017, 7:12

Shadowblitz16 wrote:@the GaMERDoG why post if your not even going to read what other people have posted?

I mean like I get it if the topic is longer then 1 page but this was only 3 posts

1. he already linked that
2. I asked how to do it in code
3. Lmove has nothing to do with sine waves directly
That was a broken link. Believe me, it was.
Image
#thatoneplasticcorkcollectingautist doesn't like nibbas on his top secret OWOP subworlds.

ImageImageImage

Check out my Artwork Train!
Image
I support
Image
The Great Giana's Adventure
ImageA Super Mario Bros. Adventure 1

Image

RSupertheGreat F
Lord
Lord
Avatar
RSupertheGreat F
Lord
Lord
Age: 11
Reputation: 88
Posts: 501
Joined: 22 Aug 2016
Location: Under yo X-Mas tree
Website Facebook Google+ Twitter

Post #7by RSupertheGreat » 28 Jul 2017, 14:20

the GaMERDoG wrote:
Shadowblitz16 wrote:@the GaMERDoG why post if your not even going to read what other people have posted?

I mean like I get it if the topic is longer then 1 page but this was only 3 posts

1. he already linked that
2. I asked how to do it in code
3. Lmove has nothing to do with sine waves directly
That was a broken link. Believe me, it was.
next.gif
Click to animate

EDIT: Anyways, get back on topic.
Image
ImageImageImageImage
Personality
Yes, I'm a girl. If you guys are thinking I'm a boy.
I have autism and ADHD. Which sometimes, I could easily get misunderstood.
I hate most people.
(Enter Power Star Frenzy userbar)
Image
My level/episode playthrough thread: http://wohlsoft.ru/forum/viewtopic.php?f=29&t=2185

Original signature ideas by me, do not steal. lmao

Yoshi021 M
Moderator
Moderator
Avatar
Yoshi021 M
Moderator
Moderator
Age: 17
Reputation: 82
Posts: 640
Joined: 15 Feb 2016
Location: Yoshi's Island

Post #8by Yoshi021 » 28 Jul 2017, 20:08

Code: Select all

do
  v(x) = v(x) + 1
  call LMove(LayerName, 0, sin(x), 0)
  call sleep(1)
loop
Links
ImageImageImage
Image
Image
"Going to University is FUN!" :pardon:

Shadowblitz16
Topic author, Close friend
Close friend
Shadowblitz16
Topic author, Close friend
Close friend
Reputation: 13
Posts: 93
Joined: 15 Aug 2016

Post #9by Shadowblitz16 » 28 Jul 2017, 22:45

@Yoshi021 thank you so much


Return to “Super Mario Bros. X by 38A (SMBX-38A)”

Who is online (over the past 5 minutes)

Users browsing this forum: 2 guests