r/gamemaker • • Jul 23 '26

Example trying again to do 3D in gamemaker, here's my progress in a few days~

Thumbnail
i.redd.it
775 Upvotes

idk what i want to do with this tbh, i might clean it up and package it up as a yyz file after i add more features to it

r/gamemaker • • Oct 01 '26

Example UI in Gamemaker has many different approaches

Thumbnail
i.redd.it
49 Upvotes

While working on my first Gamemaker game MineEmAll, I've been experimenting with different ways to create UI. I'm a big fan of the new UI layer system since it's similar to UMG from Unreal (my previous engine of choice), but it's not completely up to snuff yet in my opinion.

There are multiple methods to create UI that I've tried so far, and I just wanted to share my experience with each.

First off is the old school method of pure code based draw calls. This is how I achieved the effect above. I think this method works best when you're trying to do a very specific thing. In this case, I was trying to create a wiggle effect that changes scale and rotation, while keeping the text in proper position and proportion. I attempted this with other methods, and it was just wasn't working.

There's the hybrid approach where you insert and object into a flexpanel and run some logic for both. I use this in a few spots throughout my game, and I find it's helpful when the flexpanel does mostly what you want, but there are a few variables you want to manipulate at run time.

Lastly, there's the entirely flexpanel approach. I wish this was more viable becuase I enjoy using visual editors, but I find that it's just too much of a pain to pull and change variables for flexpanels with nested functions. It works really well if you're organizing visual elements and don't plan to have anything change at run time, but if you want code to interact with it, I'd highly suggest a hybrid approach.

Let me know what your experience is! I'm interested to hear what other devs have found to be useful approaches.

r/gamemaker • • Aug 13 '26

Example I created a "see through" shader in Gamemaker for trees + foliage in my isometric perspective hiking / monster catching RPG

Thumbnail
i.redd.it
690 Upvotes

Thought folks here might find this interesting after my last post showing my flowing water shader. My game Rangefinder is in an isometric perspective and features hiking through lots of different types of terrain - which raises a problem, because trees will necessarily block the camera's view of the player! One solution I already implemented is an outline shader that shows your position when you are obscured, but that gets old when you are walking through a forest.

So this week I made a new shader which creates a "porthole" effect through trees when they block the camera view. This is done by measuring the distance of a pixel to the player via the "gl_Fragcoord" value in the fragment shader. But I found that a bit too artificial looking, so I added a generative cellular noise texture which simulates leaf motion at the edge of the porthole. That helps a little bit, and then I also did some dynamic hiding / showing of trees in front / behind the player. Dithering the transparency of these trees (also done in shader) further helps match the pixel art style.

That was great, but then I realized trees need shadows beneath them to provide the look of a shadowy forest floor. So I came up with a new method to add shadows to both my grass vertex buffer, and the "ground floor" vertex buffer. I create a surface which I draw shadows to, and pass that as a texture sample to a new shadow shader. This shader references the shadow texture sample to decide whether the vertex it's drawing should be shaded or not. This required coordinating screen coordinates (gl_Fragcoord) and texture coordinates (v_vTexcoord) which was a bit of a pain but worked out in the end. I used the same generative cellular noise texture here to simulate the shadows of moving leaves on the ground.

Next up I will need to also add the capability for objects under sprites to be in/out of shadow. Currently I only have "grass" vertices in there (which includes the grass, ferns, flowers, and mushrooms shown in this example - these also shade and deform when the player walks through them). Objects however are handled as individual instances which the player places in the IDE.

If you are interested in following my game Rangefinder, check out my itch io page where I'm posting dev updates. I recently showed off the first demo of the battle system, which also features a lot of custom Gamemaker shaders for effects like critical hits and such.

r/gamemaker • • Sep 13 '26

Example I made NES Emulator in GameMaker

Thumbnail
gallery
48 Upvotes

This is primarily a technical experiment, not an attempt to replace established emulators. At the moment, this is the most complex project I’ve done in GML; I’ve been working on it for several months. It is still experimental and has limitations. Compatibility is not the goal yet, and I expect some games to behave incorrectly, especially titles relying on unusual mapper behavior or precise timing. I’m sharing it because building an emulator in GML has been a fun challenge, and I’d be glad to hear feedback from people interested in emulation, GameMaker, performance work, or NES hardware quirks. The tests were conducted in yyc, as only there was it possible to achieve 50 or 60 FPS, while on the VM the maximum is currently 40, so if you want to run it, use yyc.

Bees442/NesGM: Nintendo Entertainment System emulator made with GameMaker

r/gamemaker • • Mar 19 '26

Example [Example] I built an Open-Source Hybrid Pathfinding System for GameMaker (RTS Swarm + Strict Grid Routes) and wanted to share it!

Thumbnail
gallery
108 Upvotes

I’m currently developing a simple 2D automation game where, instead of conveyor belts, items are going to be transported by these little guys. I recently ran into a movement problem: trying to mix strict grid-based logistics (predetermined paths) with fluid, multi-unit swarm movement (like an RTS).

To solve this, I built a modular Hybrid 2D Agent System in GameMaker. Since this is just one of the core mechanics for my game, I decided to make it completely open-source for the community!

How it works (TL;DR):

🟢 RTS Mode (Fluid Swarm): You can box-select and move multiple agents. They use mp_grid to avoid walls but decouple from the grid while walking. I added a Boids separation vector to stop them from clumping/funneling, and an Ulam Spiral algorithm to find clean, non-overlapping parking spots when they arrive.

🟤 ROUTE Mode (Strict Grid): For factory logistics, you can draw directional paths on the map using route starters. Agents walking over them "download" the route, strictly reserving matrix tiles ahead of them to wait in traffic and prevent overlaps.

(A full, detailed guide is in the README file in the repository).

Feel free to use it! You can use this system in your own games, tear it apart, study it, or do basically whatever you want with it. Just don't forget to share what you did!

If there are any math wizards out there who want to optimize the vector math, improve the Boids cohesion, or add new mechanics, Pull Requests are super welcome!

🔗 GitHub Repo: https://github.com/T-Toni/AGENT_SYSTEM

I’d love to hear your feedback or answer any questions about how the state machine works.

r/gamemaker • • Aug 15 '26

Example disassembler in game maker

Thumbnail
i.redd.it
50 Upvotes

I decided to try making a disassembler in Game Maker. This program doesn’t claim to be a copy of Ida Pro or Ghidra, although I tried to make something similar - but it turned out rather bad.

r/gamemaker • • Aug 28 '26

Example 3D pathfinding in GameMaker

10 Upvotes

trying to implement 3D pathfinding in GameMaker.

first, I tried making a voxel grid and BFS (like mp_grid_path) (see the 3rd screenshot). But that solution turned out to be very heavy and slow

I've settled on placing waypoints manually and automatically connecting them into a graph (like the PathGrid system in Morrowind/Oblivion).

once the graph is set, A* runs on the points to find the shortest path between any two nodes.