Alternative Gliding Script
Game Introduction
We often like to use this gliding script (on the left) to make a sprite gradually glide towards a goal position. The script is super simple and super useful, but also a bit confusing because it involves a "change" block and an unintuitive order of operations. I wanted to see if there was a more understandable way of making the formula. So I spent 30 minutes brainstorming with ChatGPT, and we arrived at the new version. It uses a "set" block and a more clear order of operations: Every frame it keeps 90% of the original position and adds 10% of the goal position. (You can change those numbers, they just have to add up to 1). Apparently this method is similar to the Exponentially Moving Average (EMA) in maths/finance I will be using this new method in all of my projects from now on.
How To Play
Author
BNNMN444TvTest
Category
Game Information
Game Popularity
3.3k views
Collection Count
132 favorites





