Adjusting Moving Layer Speed

General discussion about Super Mario Bros. X.

Moderator: Userbase Moderators

MarioWorker12
Bot
Bot
Posts: 59
Joined: Sun Jan 12, 2014 9:24 am

Adjusting Moving Layer Speed

Postby MarioWorker12 » Fri Jan 17, 2014 4:17 pm

I actually don't want to open up a whole new topic just for a little question I want to ask, but I need to learn that as I plan to use moving layers in my future levels and I guess lots of people would also want to do that, so it'd be useful for a lot of people I guess. My question is, I am sure that there was a formula by which you could adjust your moving layer to move exactly how many pixels you want it to move, and even though I did lots of research (like two minutes maybe) I couldn't find it. So does anyone have it, or do any of you guys know any other way that I could precisely adjust the speed of a layer to make it move exactly as I wish? I don't want to test a level over and over again until I find a good speed for a layer, and I bet no one does. Thanks in advance.

Magna DominXus
Spike
Spike
Posts: 287
Joined: Fri Dec 20, 2013 2:54 pm

Re: Adjusting Moving Layer Speed

Postby Magna DominXus » Fri Jan 17, 2014 4:41 pm

I use trial and error, no "formula". But if you want to not keep restarting the level and getting to that one part then you can place the starting point in that area.

FallingSnow
Foo
Foo
Posts: 822
Joined: Sat Dec 21, 2013 4:32 am

Re: Adjusting Moving Layer Speed

Postby FallingSnow » Fri Jan 17, 2014 4:45 pm

I think someone figured it out at some point, and it was some very decimal, but I don't have the numbers.

reghrhre
Rocky Wrench
Rocky Wrench
Posts: 668
Joined: Mon Dec 02, 2013 6:19 pm

Re: Adjusting Moving Layer Speed

Postby reghrhre » Fri Jan 17, 2014 4:57 pm

32 * x / y / 65. DarkMatt posted a guide for this a long time ago that I made sure to memorize, because it works. I should know, I've been using this for a very long time now. You'll probably get a ridiculous decimal, but I usually just use the first four digits after the decimal point. However, with faster speeds/longer distances, you may still need to play around with the result a bit.

32 = Number of pixels in a given tile, of course.
x = How many tile spaces should this layer move?
y = How many seconds should this take?
65 = Maximum framerate.

MarioWorker12
Bot
Bot
Posts: 59
Joined: Sun Jan 12, 2014 9:24 am

Re: Adjusting Moving Layer Speed

Postby MarioWorker12 » Fri Jan 17, 2014 5:01 pm

That's what I was talking about. Thanks reghrhre! :''''''''')

reghrhre
Rocky Wrench
Rocky Wrench
Posts: 668
Joined: Mon Dec 02, 2013 6:19 pm

Re: Adjusting Moving Layer Speed

Postby reghrhre » Fri Jan 17, 2014 7:41 pm

No problem :''''''''))

Anyways problem solved so locked


Return to “General”

Who is online

Users browsing this forum: Amazon [Bot] and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari