Page 1 of 1

Adjusting Moving Layer Speed

Posted: Fri Jan 17, 2014 4:17 pm
by MarioWorker12
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.

Re: Adjusting Moving Layer Speed

Posted: Fri Jan 17, 2014 4:41 pm
by Magna DominXus
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.

Re: Adjusting Moving Layer Speed

Posted: Fri Jan 17, 2014 4:45 pm
by FallingSnow
I think someone figured it out at some point, and it was some very decimal, but I don't have the numbers.

Re: Adjusting Moving Layer Speed

Posted: Fri Jan 17, 2014 4:57 pm
by reghrhre
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.

Re: Adjusting Moving Layer Speed

Posted: Fri Jan 17, 2014 5:01 pm
by MarioWorker12
That's what I was talking about. Thanks reghrhre! :''''''''')

Re: Adjusting Moving Layer Speed

Posted: Fri Jan 17, 2014 7:41 pm
by reghrhre
No problem :''''''''))

Anyways problem solved so locked