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: Lx Xzit, Yoshi021, 5438A38A, TepigFan101, Semi-moderatos, 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: 96
Posts: 648
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
Viscount
Viscount
Avatar
the GaMERDoG M
Viscount
Viscount
Age: 13
Reputation: 26
Posts: 319
Joined: 11 Mar 2017
Location: Biysk, Russia
Website

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

Image
#thatoneplasticcorkcollectingautist was hacked on OWOT.

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
Viscount
Viscount
Avatar
the GaMERDoG M
Viscount
Viscount
Age: 13
Reputation: 26
Posts: 319
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 was hacked on OWOT.

ImageImageImage

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


Image

PK Esper F
Lord
Lord
Avatar
PK Esper F
Lord
Lord
Age: 12
Reputation: 97
Posts: 516
Joined: 22 Aug 2016
Location: The sky
Website Facebook Google+ Twitter

Post #7by PK Esper » 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.
Formerly known as RSupertheGreat.
ImageImage
What I support
ImageImageImage
Personality
Yes, I'm a girl. If you guys are thinking I'm a boy.
I hate most people.
I'm a developer (and a beta tester of):
Image
Image
My level/episode playthrough thread: http://wohlsoft.ru/forum/viewtopic.php?f=29&t=2185

Yoshi021 M
Moderator
Moderator
Avatar
Yoshi021 M
Moderator
Moderator
Age: 17
Reputation: 96
Posts: 648
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