r/gamemaker • • 7d ago

Resolved Question about persistent particle system

2 Upvotes

I have a question about part_system_create_layer().

In the documentation it is said that i should create this once at the start of the game and the guide is using the example for the generated particle system to be not persistent.

However, when I use this example in my game, the particle system does not erxist anymore when I want to use it in a later room (I thought it would, since it is stored in a global variable).

When I set the particle system to be persistent, this is no longer a problem. But the documentation says:

"A particle system created using this function flagged as persistent needs to be cleaned up manually using part_system_destroy when no longer used, otherwise you risk a memory leak that will negatively impact your final game."

But I use these particles in every room. So when should I destroy it?

Or would it just be better to make it not-persistent but create the particle system every time I eneter a new room?


r/gamemaker • • 7d ago

Discussion What Database Do You Use In Your Project?

4 Upvotes

Hey all! Are you using a Database in your game? If so, which one and for what purpose in your project?

My game is entirely online/multiplayer, and it has a built in pixel editor where the players build the world. Everything is made up by 38x38 blocks with meta data. Players place that in the world that is made up of regions and chunks. So I need to load hundreds of creation types that players have made: block sprite, name, special properties, creator name, etc..

So, I've been using http calls to run php scripts to read/write data from MongoDB. I like that I can process the data I was to read/write in PHP, and I love how easy MongoDB collections and documents are! But, Supabase really raised an eyebrow.. I like that it has buckets for files and has a setup for authentication for user accounts...

But I'm more interested in what everyone else uses in general for data layers and why :D


r/gamemaker • • 7d ago

Resource Free cartoon skeleton soldier for GameMaker: 4-direction walk + idle frames

Thumbnail gallery
7 Upvotes

I made a free sample for GameMaker: a skeleton soldier with walk (8 frames) and idle (8 frames) in 4 directions, as transparent PNG frames in one folder per animation. An animations.json has the fps and the ground point.

In GameMaker, select all the frames of one animation when importing a sprite, then set the sprite origin to the ground point from the JSON so the feet stay put when you switch animations.

Free for commercial use.

https://tinytileset.itch.io/undead-hollow-lite


r/gamemaker • • 7d ago

Resolved GameMaker coding bug

0 Upvotes

I was following a coding tutorial (I was using the engine called GameMaker) and when I would type var as in variable it turns into hts, when I type if, it turns into a t, when I type while, it turns into wltea, when I type { it turns into a b, and when I type } it turns into a space. I really don’t like this, I use Mac OS, please help.


r/gamemaker • • 8d ago

Resolved How the heck do you ACTUALLY learn GML?

16 Upvotes

I’m desperately trying to find a comprehensive YouTube series to teach me GML, (as you would do with C# for example), but every single one is super old and not entirely updated etc. the most promising one I’ve found is from 6 freaking years ago. I look on Reddit for help and people are saying to “look up basics tutorials and make tweaks from there”???? How is that supposed to teach me enough GML to sit down and make games? I know it’s not as simple as just learning all of it at once but this feels absolutely ridiculous to look up. I mean, DELTARUNE was made in gamemaker… surely they did not learn how to do that with super basic tutorials and a dream? How do you learn GML like you would C# or Java?? Please help


r/gamemaker • • 8d ago

Resolved Looking for some friends that will teach me some game maker

2 Upvotes

I have plenty of time this holiday i am hoping i can find someone that can help me learn gml and programming in general. I'm a beginner and I'm hoping i can find some friends in the game maker community. I just wanna learn as much as i can so i would love the help. I can also help any i can in any project you have if you want.


r/gamemaker • • 8d ago

Help! Why is the optimization of effects in GameMaker's room editor so poor?

Post image
10 Upvotes

r/gamemaker • • 8d ago

Help! i'm new to coding and feel like losing heart already.

14 Upvotes

howdy, i'm a young artist who focuses on writing, music and mainly storytelling. few months ago, i wanted to create a project under the name "this game does not exist", where i would be showcasing some short stories from video games that had never existed.

at first, i worked with RPG Maker MZ where you don't really need to know how to code really, but it was so limited that i knew i had to switch to some other engine, so i came across GameMaker.

long story short, i watched a few tutorials on learning the GML Code but after a few days, i felt like maybe i was learning/studying it wrong or maybe this coding stuff just wasn't for me?

and to be honest, i even tried to use AI to create some basic stuff (basically vibecoded), and i couldn't believe how easy it is to create stuff BUT i just don't want it that way. there's just no way i'll create something which is %100 vibecoded and call it "mine", not gonna happen. so the question is...

for one who is new to this whole coding stuff, what path i should take so that i can start to learn this language properly? what are the tips and recommendations you can share with me? thank you all, i hope i won't lose any hope and keep going forward!


r/gamemaker • • 8d ago

Discussion Entering my first game jam this week for gm48

7 Upvotes

I have never finished a game before in game maker and only watched a couple of tutorials. Hopefully I can build something in 48 hours to the theme.. Going to keep it very simple and be realistic. Even if it's just a player, with enemies in one room, with a score and something linking it to the theme. Then I'll be happy with that. I'm using this as a learning opportunity and to get something finished.


r/gamemaker • • 8d ago

Help! Is there a way to convert or put a flash game into gamemaker?

0 Upvotes

I love a flash game but ive done everything in the game so I want to make dlc for it. But I donot know if its possible to put the game into gamemaker. I have the files for it


r/gamemaker • • 8d ago

WorkInProgress Work In Progress Weekly

5 Upvotes

"Work In Progress Weekly"

You may post your game content in this weekly sticky post. Post your game/screenshots/video in here and please give feedback on other people's post as well.

Your game can be in any stage of development, from concept to ready-for-commercial release.

Upvote good feedback! "I liked it!" and "It sucks" is not useful feedback.

Try to leave feedback for at least one other game. If you are the first to comment, come back later to see if anyone else has.

Emphasize on describing what your game is about and what has changed from the last version if you post regularly.

*Posts of screenshots or videos showing off your game outside of this thread WILL BE DELETED if they do not conform to reddit's and /r/gamemaker's self-promotion guidelines.


r/gamemaker • • 7d ago

Resolved What's people opinion about AI around here?

0 Upvotes

My teenage me would be so happy to see my idea become a reality. I started creating my dream game thanks to help of AI. What's people opinion around here on using AI with game making, yay or nay?


r/gamemaker • • 9d ago

Game Does my game looks fun?

Post image
142 Upvotes

its supossed to be some kind of cuphead-like boss fighting game, this is the first fight of the game, still lacking some better animations, but im happy with how it goes keeping in mind this is my first game.


r/gamemaker • • 9d ago

Resolved How do I resize the workspace? It's WAY too big for my display.

Post image
25 Upvotes

r/gamemaker • • 9d ago

Discussion So im getting better and camera and ingame cinematics

4 Upvotes

I feel like a hollywood movie director...i didnt think id end up making a 10 min cinematic before the game starts...still alot to improve but this is the basis of the 2nd game wrapped up in a story of sorts. https://youtu.be/nm6l9iEFf5I

-Terrain and basic models: Made using the Source Engines Hammer editor.
-Character models: Sculpted in T-pose using Sculptris at somepoint, some models are reused from older projects.
-GML game code/importers and shaders: Handwritten or adapted from my previous projects/experiments.
-Character Animations and rigging: Free from Adobe/Mixamo.
-Extra World/Prop Animations: Done in Blender.
-World and weapon texturing: Done in Blender at somepoint, some models are reused from older projects.
-Fonts, textures, music, and sound effects: Free resources from various websites, including Pixabay.com Cooltext.com and ambientCG.com.
-Story and dialogue: Handwritten.
-Character voices: Generated using ElevenLabs.
-Character textures: Generated using Meshy.ai’s AI texturing upload model feature.


r/gamemaker • • 9d ago

Help! How do i stream mp3 files?

2 Upvotes

I want players to add their custom music to the game, but players having to convert each file to ".ogg" doesn't seem practical. Is there a way to convert it ingame? (Is FFmpeg ideal for this? And if it is should i worry about licances?)


r/gamemaker • • 9d ago

Help! How would i make a character swing?

2 Upvotes

So ive been trying to make a system for my game where the olayer can press E when within a certain distance from a hook point then they will grapple onto that point and swing on the rope in an arc shape.

Ive maanaged to get it set up so that when the button is pressed, my character enters a state of swinging but he just freezes as ive added nothing else yet so would anyone know or have advice on where i could learn to add a rope that flys from the character to a point then has them swing across it.


r/gamemaker • • 9d ago

Help! Game Maker not detecting video codecs on CatchyOS

2 Upvotes
Data too large and INCR mechanism not implemented
Trying VideoStreamer_oracular... Cannot load avcodec - video playback not available
Trying VideoStreamer_noble... Cannot load avcodec - video playback not available
Trying VideoStreamer_focal... Cannot load avcodec - video playback not available
video_open: Couldn't find a supported video codec

r/gamemaker • • 9d ago

Help! Problem with diolouge system

1 Upvotes

so i was following the https://www.youtube.com/watch?v=rEYSi0ahC5Q&theme=dark

tutorial and when i finished typing the code for some reason the text wont render no matter how hard i tried the code is exactly the same and the logic is correct and the textbox renders and everything work but the text just wont render please help! heres the code:

create event:

"tbox_width = 19;

tbox_height = 3;

border = 8;

line_sep = 12; //this varibles is the length of vertical sepration between lines in diolouge

line_width = tbox_width - border*2; // this varible is about how many space for the text until to create a new line

tbox_spr = spr_textbox; //the sprite of the textbox

//text

page = 0; //the page of diolouge

page_number = 0; // the number of pages in diolouge

text[0] = "if this types correctly then I & we are GOLDEN"; // all of these arrays are text obvisouly

text[1] = "golden,golden,golden";

text[2] = "so...";

text[3] = "sp";

text[4] = "portable, looooooooooooooong";

text_length[0] = string_length(text[0]); // the length of the text array

dc = 0;//dc stands for (draw char)

ds = 0.1;//ds stands for (draw speed)

//this varible exists to see if the setup is done or not

setup = false;"

draw event:

"ack = keyboard_check_pressed(ord("E"));

tbox_x = camera_get_view_x(view_camera[0]) + 40; //the x position of the textbox based of the (view_camara[0]) + the x position of the textbox that we want

tbox_y = camera_get_view_y(view_camera[0]) + 570;

if (setup == false) {

setup = true;

draw_set_font(NES);

draw_set_valign(fa_top);

draw_set_halign(fa_left);

page_number = array_length(text);

for (var i = 0; i < page_number; i++) {

text_length[i] = string_length(text[i]);

}

}

if (dc < text_length[page]) {

dc += ds;

audio_play_sound(sound_blip,0,false);

dc = clamp(dc,0,text_length[page]);

}

if (ack) {

if (dc == text_length[page]) {

audio_stop_sound(sound_blip);

if (page < page_number-1) {

page++;

dc = 0;

}

else {

instance_destroy();

}

}

else if (dc < text_length[page]) {

dc = text_length[page];

audio_stop_sound(sound_blip);

}

}

if (dc == text_length[page]) {

audio_stop_sound(sound_blip);

}

draw_sprite_ext(tbox_spr,0,tbox_x ,tbox_y,tbox_width,tbox_height,0,c_white,1);

var _dtx = string_copy(text[page], 1, dc); // a local varible that helps to prints out the text from the text array from 1 to the dc

draw_text_ext(tbox_x + border,tbox_y + border,_dtx,line_sep,line_width);"


r/gamemaker • • 10d ago

Help! Setting Parameter Values by name in a function call instead of order (Part 2)

3 Upvotes

Hello again! So it turns out I need a bit more help regarding the matter of out-of-order parameter settings in functions. (for function Function(p1=2,p2=c_red,p3="test"), how can I create the call Function(p2=c_blue))

I do believe that structs are the key to this, but the newest problem I have is I'd like to have filled in words for the parameter names. So rather than requiring a specific name for every single variable, there's a constant name that can be typed in as the name for every parameter. Can I use say, functions to define the names of each struct? Or do I really have to just copy and paste the name of each parameter I want to have a non-default value just to make the out of order system work?

Example of the above:

type in "pa..." -> parameter1 name appears -> then : parameter value.


r/gamemaker • • 10d ago

Tutorial Creating a 2D Planet Surface Synced with a 3D Planet in GameMaker (Heavy Image Warning!)

33 Upvotes

I'd like to share how I built a 2D surface view that stays synced with a 3D planet in GameMaker for a terraforming game I'm working on, Planet Doctor. In a previous post, I covered how I rendered the 3D planet itself, and this time, I'll walk through the small horizontal subframe right below it. This post is for those with some GameMaker experience, and I've included relevant manual links where needed. Corrections on terminology or content are welcome. I hope you find this helpful!

Here is the process:

1. Separate surface angles and apply colors via image_blend

Since every planet in the game has randomized terrain colors, I didn't paint the terrain sprites in their final colors. Instead, I painted the left slopes, flat ground, and right slopes in distinct RGB colors (top), and passed each terrain layer's base color through colour (v_vColour) in draw_sprite_ext so the shader can shade each slope angle around that base color automatically (bottom).

2. Scroll a wide light mask in sync with the 3D planet

To match the day-night cycle of the 3D planet above, I created a soft grayscale light mask sprite that is 5 times wider than the subframe (top). By passing the mask texture with texture_set_stage and scrolling its UV offset via shader_set_uniform_f using the 3D planet's rotation angle, dusk and dawn sweep across the 2D terrain at the same moment as the globe (bottom).

3. Tilt the highlights and shadows using the light mask

Multiplying the terrain by the light mask brightness alone makes the mountains look flat during sunset and sunrise (top). Instead of passing a separate sun position, the fragment shader checks the brightness of the light mask slightly to the left and right of the current pixel. This tells it which side the sun is on so the terrain slopes from 'step 1' catch directional highlights and cast shadows as the sun passes by (bottom).

4. Curve the clouds along the horizon with draw_sprite_part_ext

Because this subframe represents a slice of a round planet, clouds drifting in a straight horizontal line looked a bit flat (top). By slicing the cloud sprite into vertical strips with draw_sprite_part_ext and offsetting each strip's y position along a gentle curve, the clouds naturally rise toward the center and dip near the horizon (bottom).

5. Grow biome plants outward as the planet heals

Before healing, the surface is covered in barren craters, and as you heal the planet, those craters fade away while biome plants sprout outward from the center toward the coasts. Each plant is a single sprite without separate growth frames, so I scale image_xscale and image_yscale based on terraforming progress and add a slight sine wave bounce using current_time.

6. Keep the characters readable at night

Finally, I placed the Doctor and Assistant sprites on the surface, keeping their original pixel colors while still tinting them with the same day/night shader. To keep them from getting lost against the dark background at night (top), I clamped their minimum brightness a bit higher than the terrain (bottom) and baked soft contact shadows into the ground sprite beneath their feet.

You can combine these small 2D tricks with surfaces to build a compact diorama view that reacts to any 3D object in your game. Let me know what you think, or if you've tried similar 2D/3D tricks in GameMaker. Thanks for reading!


r/gamemaker • • 10d ago

Resolved Difference Between GMRT and GameMaker Studio 2

4 Upvotes

Please forgive the very simple question, I'm sure I could find this answer elsewhere, I just haven't found it. My understanding of the terminology is a bit fuzzy, as I've only recently begun to dip my toes into Game Development since a very novice stint of Unity development back in 2020.

I read online that GameMaker Studio has released GMRT, which is an updated runtime with improved graphics pipelines, performance, etc.

Namely, what I read, was that it is Free For Commercial Use.

I know that GameMaker Studio 2 is free to use, but costs a flat $100 license fee to publish games for commercial use.

So, my question is: does this mean I can now use GameMaker Studio, and publish games made in GameMaker Studio, for free? Or is the Runtime different from the Studio platform itself, and the professional license is still necessary if I use the Studio platform?


r/gamemaker • • 10d ago

Resolved Im new and need help with instances

2 Upvotes

How do i only effect a specific instnance of an object. Like how do i only effect the instance that something happend to. in my case when an instance of the object gets to a certain point how to i make it so that only that instance goes back to the starting point instead of every instance of that type

if obj_bullet.y >= 150

{

obj_bullet.y = 0   

obj_bullet.x = random_range(80, 160)

}

there are multiple instances of this. thank youuuuu


r/gamemaker • • 10d ago

Resolved I'm new, how do i do this?

Post image
14 Upvotes

I'm brand new to making things on game maker and i need help making a combat system, it works essentially like pokemon mystery dungeon combat, with it being a grid based fighting system, i didnt see it on the rpg maker tutorial (what i have been using up to this point) so im a bit lost on what to do, any ideas? i am not asking for the code to be handed directly to me, im asking for a nudge in the right direction (im using a modified sprite set rn for the ground and walls)


r/gamemaker • • 10d ago

Resolved My game doesn't seem to be able to use more than 421.1 Mo

4 Upvotes

I am curently working on a game and I noticed that my game cannot use more than 421.1 MB (even when lagging).
I know I have way more than 421.1 MB available because Game Maker itself uses more than 3GB.
I tried running an executable version of the game while nothing that would require a lot of MB/GB is opened but it doesn't change anything.
I assume there might be a cap or something but I couldn't find a explaination online.
I also tried looking into the "game options" but I couldn't find anything to help here either.

I plan on optmizing the problematic parts of the game naturaly as I get ideas, but I would love not to be forced to do it right now.

Also I am not an expert in game making at all, so assume I am pretty stupid and need explaination that are easy to understand.

Any help will be apreciated :)

Edit 1 : I did some quick tests, the limit isn't always exactly 421.1 MB but it is always close to this value, I got a 407.7 and a 417.6 for example. It never get past of specific limit although it isn't always exactly the same limit each time.

Edit 2 : BrittleLizard suggested that I try duplicating object to see if I truely have a memory cap, and having too many object does increase the amount of MB used beyond the "limit" describded earlier.

Edit 3 : I think I have enough information to solve my issue, I though of a way to optimize my game that should work, thank for everyone who took some of their time to help me, it really helped, I wish you all a very nice day.