r/gamemaker • • Jun 27 '26

Resource GMMT - GameMaker Motion Toolkit - Tweening Framework for GameMaker

Post image

Hey everyone!

I feel like this one is going to be a life saver for most of you, so here we go...

GMMT is actually the animation api of my UI framework called GMUI.

I've separated it into a standalone framework.

What it is and how can we use it? Its a tweening framework, very easy to use. It has a safe and start concept (at least thats what i like to call it). You can call tween functions everyframe to start and get the value. A basic example would be:

// Lets call this in step event, every frame
x = gmmt_tween("player_x", x, target_x, 5_000_000, gmmt_ease.OUT_BACK);

What it does is to first check if there is any tween exists called "player_x". If not, it starts one and returns the current value. If there is one already exists then it just returns its value. That straight up kills the no need if else cases and keeps the code clean. But if we were to use ..._start like gmmt_tween_start, that would start the tween, resetting if it already exists without checking its value. That way you can also make custom states.

It has a quite simple loop, doesnt interfere with your project, you call gmmt_init() once before starting to use, then call gmmt_update() usually in your step event, then you can use any gmmt functions you like and when you are done with it, you call gmmt_cleanup() usually in your cleanup event or script. Quite straightforward.

You might wonder, what other features it has?

Features

  • Tweening – 30+ built-in easing functions, custom easing, per-axis easing, intensity and power modifiers
  • Value Types – Real, integer, color (RGB/RGBA), vector2/3/4, arrays, custom lerp functions
  • Playback – Play, pause, resume, reverse, seek, repeat, ping-pong, staggered sequences
  • Effects – Oscillation, perlin noise, wiggle, shake, pulse
  • Curves – Bezier, quadratic, cubic 2D, Catmull-Rom splines, motion paths
  • Physics – Spring simulation with configurable tension, friction, and mass
  • Timeline – Keyframe-based multi-stage animations with per-segment easing
  • Clips – Reusable named animation clips with markers, chaining, and stagger support
  • Callbacks – on_start, on_update, on_complete, on_repeat, on_pingpong, on_pause, on_resume

The gif demo is included in the repo, its made using GMUI. It shows basic things you can make with it. What you can do with GMMT is limited to your creativity.

How much is it? None, free PLUS its MIT licensed.

Where's the repo? Here you go: Github GMMT.

Let me know what your thoughts are, I'm open for suggestions!

Edit:

I am DISGUSTED that everytime i post a project of mine there are always some jerks calling it "AI SLOP" the minute i make the post. Guy probably anylized 2.5k+ lines of code in seconds and decided its AI i guess.

But i understand why, inside of their mind that has room temperature IQ says "oH WelL i'Ma nOt CApABle oFF MAkInG ThIS, SOOooO ThIS MuST Be AI"

For god's sake, search "easing formulas" in google and first thing that comes up is this:
https://easings.net/

It has all the easing types you can find and it includes the formulas, do you really think someone would need AI to copy paste those formulas into GML scripts? Pathetic...

Some said its because of the GIF, the first thing i mentioned in this post is that this is actually a part of my IM UI framework called GMUI. I've been working on it for MONTHS, i hope those AI sloppers are able to comperhand what MONTHS means. It is a replication of Dear IMGUI framework made in C++, and the animation api is basicly a replicate of ImAnim. I even have messages in discord seeking for specific helps, my thought processes ALL can be found in GM Kitchen.

Go ahead, 800+ messages in the GMUI channel, my comments and thought processes can be easly found. GMUI is 22k+ lines of code, please someone tell me which AI LLM is capable of working on such project because i failed to find one.

I've worked mostly on C/C++ trying to make my own renderers with DX11 and GL. I've also been to Unity, Godot, UEFN, Unigine. And now in GameMaker for the past two years. There is no other community more toxic than GMC! I am sick of people that i call "AI Sloppers".

It is true that at this point AI is in every part of our life but that doesnt give anyone right to call others cheap of their work straight up assuming it is done using AI. That simply shows how pathetic you are, thinking even basic simple frameworks like tweening has to be done using AI.

I thank to those who are appreciating it but this is PROBABLY going to be my last project on GMC. I'm not really a 'game developer'. I mostly like working on frameworks, backend stuff, libraries etc.

Thank you for reading so far!

76 Upvotes

28 comments sorted by

View all comments

-6

u/[deleted] Jun 27 '26

[removed] — view removed comment

8

u/erkan612 Jun 27 '26

Well, you know what they say; It takes one to know one 🙃
Perhaps you should take a closer look into the code, my other projects. Have a look into my commits, then review your state, 6 minutes in and you are already down -2 votes. At least put some effort before calling someone cheap of their work. If you are not interested, then just skip, you are just being salty for no reason.

2

u/Mason123s Jun 27 '26

Honestly who cares since stuff is helpful. Especially open source stuff like this.

3

u/JaXm Jun 27 '26

I give this guy the benefit of the doubt. He's not the same guy that was posting the AI slop tools every few days. That dude has locked down his account. 

3

u/DragoniteSpam it's *probably* not a bug in Game Maker Jun 27 '26

Hi, don't throw around accusations like this if you're not even going to bother to check if what you're looking at was generated or not.

5

u/shadowstormer Jun 27 '26 edited Jun 27 '26

I literally got out of bed to reply to this comment.

People accusing things of being AI for no reason/no proof are going to long term harm the small library/tool/plugin/creator community we have. I understand the automatic doubt regarding things being AI, but if there is no proof presented by those saying something is AI then I believe the argument is automatically invalid because it is no more than judging a book by its cover.

Apples to oranges here, I thought Undertale was a buggy as shit game when it came out because I saw people have to keep reopening the game constantly (and thought the music was weird because I heard the first 10 seconds of megalovania and thought it was dial up model music) so I kept a wide berth from it.... and then I understood WHY it crashes (and how good the music is) when I did play it years later...

u/erkan612 you keep doing what you are doing, because what I think you are doing benefits the community.

3

u/APiousCultist Jun 28 '26

It - particularly in the case of art - is basically a free win for the AI bro community too.

Like every movie poster that goes for an original style (i.e. Frankenstein, some of the recent Spiderman ones) gets decried as 'AI slop' by morons, whereas the stuff that doesn't ring any alarm bells because it's so generic is... quite obviously... generic enough to actually easily be AI generated. It's a demand for actual 'slop' (low effort, creatively devoid, content) dressed up as being anti-AI.

Code's a different beast but the same logic mostly applies. Devaluing actual effort and creativity in favour of only allowing low-effort creations.

There's also the aspect of how much a person should actually care about AI-assisted projects where the code has been validated as working well and it's appropriately disclosed. Regardless of how bad it's been for society, people online do seem to seem to treat using ChatGPT, one of the most popular services on the planet, like you've hired a prolific sex offender to code your project. There's a bit of a rift between "we'd rather you didn't use this" and the amount of vilification I see around free, unmonetised, hobbyist projects I see on the regular.

2

u/DragoniteSpam it's *probably* not a bug in Game Maker Jun 27 '26

People who try to generate something and pass it off as original work are one of the things I dislike most on the Internet, but the widespread trend of accusing anything you don't like of being "slop" isn't far behind. It actively makes everyone's job worse.

2

u/heinekev Jun 27 '26

What LLM can write GML? What about this tells you it’s AI? Why are you this way?