Just use it as a normal elevator would be used
well, time to share another project I guess. And what is this project, you may ask? Well, I have decided to make something quite interesting for something in the Scratch community. Lately during my free time, I have been researching into the depths of linear, cubic, and other interpolations: How they function, their formulas ( it's fun to play with them ;) ), and how they work. I decided, "hey, why not attempt this in Scratch?" So here is my final result. I am very proud of the outcome. The current easing styles available in the source code are: -Linear -InOutQuad -InOutQuart -InOutSine I may or may not add more easing styles later on. For now, you are more than welcome to remix and play around with the different easing styles I have created. The basic concept of these easing styles are mostly straightforward: The main source of the interpolation uses a Lerp function ( (a+(b-a))*t ), given a = start point, b = end point, and t = time (an integer ranging from 0-1 ( 0 being the start point, 0.5 being the halfway point, and 1 being the goal point )) Using the function, the duration formula is just ( (elapsedTime-startTime)/duration ). Using this value, we plug this into the easing style block. The block then calculates the value into a new value, and returns it as a new value. This new value is then used in the Lerp function, which then allows us to change how the doors move. In shorter terms, the default Linear Interpolation time value is changed & modified to change how the target reaches its goal point within a given duration. Pretty cool, eh? I hope you all enjoy! My future elevator simulations will be using this system. I absolutely love how smooth the doors move, and they are super easy for me to change & create. I think this is a big step in the Scratch elevator community, as most people use glide blocks or "repeat until" blocks for variable speeds. This is pretty easy to modify, and I made sure my custom blocks include arguments for adjustments. For now, though, the doors only support X axis interpolation. I plan on adding support for the Y axis eventually as well.