https://github.com/ChimbroDaPro/arcade-easing
Hey yall, so I’ve found myself getting really frustrated with the limited movement options for MakeCode, like, pretty much EVERYTHING is linear, and it makes things like character dashing, objects falling, and UI movement have a lot to be desired. I found it to be very limiting especially when you want certain movements to be really expressive or fancy.
But all of that has changed now, with the all new Easing Extension, my first proper extension! I made sure it’s super easy to use, and, who knows, maybe it’ll become something like Timers or Settings that people won’t be able to live without . I guess time will tell. But let me give you a breakdown of what this extension has to offer:
I strived to make the extension as accessible as possible, so that it’s simply a case of a “sprite moves from A to B” type block. So, in that sense, it helps with simple sprite movement, similar to that one block in @jwunderl’s sprite utils extension. Of course their also the twist of the actual easing to the location of your choice:
I have various easings, from sine, quad, quint, bounce, elastic, circular (my favourite), exponential, quart, and back.
Here are a few fun ones:
Circular
Elastic
Bounce
And if you want to move your sprite relative to the sprites location, like, say, you want a sprite to dash, you can use the ease by dx and dy block!
Now, trust me, my example isn’t great, but you can do A LOT with this if you pair it with an animation, or like some killer move where the enemy flies in and… nevermind lol, getting ahead of myself.
Those are the main two blocks, and the rest are intuitive enough, but the cancel easing blocks are very useful too, especially if you want a diving attack to be parried of deflected, you could cancel the easing and… bruh why am I giving you ideas again? Just use it for yourself, I think you’ll like it.
Another gif with me just goin crazy with easings: