Programming Challenge GM: Easing (+ agapi)

Posted by Alert Games on Oct. 31, 2014, 9:03 a.m.

I've talked with acid about making an open-source version of the AGAPI to work on the graphics and effects and containers for it. But from past experiences on this, the only way to keep it organized is to make a lot of documentation on how it should be organized. I realized that as GM is not that great with organizing code, it also makes it more difficult to work together on code as well. (…maybe I should help jobo make a way to build better function structure in parakeet…)

Anyhow, one of the things that is needed in AGAPI, and would honestly make a lot of games better is easing functions for smooth animation. This is an example of what i mean:

from: http://easings.net/. Also, source on Github: jquery.easing.js

I was thinking of using something like ease in/out back, and ease out elastic, mostly for moving panels around and such. Do you think you can come up with a clean way to do this?

I have an older example here of the motion I have currently for the login box that you can take a look at. The login doesn't work right now because i've moved the API, but the new one will be able to update those kinds of things.

check out the old agapi2012 demo

It has a pretty smooth motion, but its rather hacky with a few variables and I'm wondering if someone could come up with a better way! I know you guys can do it ;)

Have a happy halloween and dont drink too much… unless you want to

Comments

Alert Games 10 years, 1 month ago

How do you make those nice GIF's again? I thought I just downloaded something to do it but i dont remember the name…

This is the curve I ended up looking for. Seems like it goes from right to left….:

But yeah its kinda similar to the iOS swiping animation when you reach the end of a page I guess.

nap 10 years, 1 month ago

^Licecap for the gifs

Alert Games 10 years, 1 month ago

I actually really like what you've made here S-N. Makes me want to refine it, make some presets, and make an exporter lol.

You could make good menu effects with it, or even better movement of scenery in games and things like that.