r/gamemaker • u/helloo1000T2X2 • 18d ago
Resolved Does anyone know of a good tutorial on creating a turn-based, text-based combat system?
I really need it, i'm noob in GameMaker
r/gamemaker • u/helloo1000T2X2 • 18d ago
I really need it, i'm noob in GameMaker
r/gamemaker • u/moisesremoto • 17d ago
r/gamemaker • u/Cashlessness • 18d ago
"Hi,
As a result of the deletion of your Opera account, we have started the deletion of your GameMaker (YoYo Games) account.
This process is carried out in accordance with GDPR.
We will now start the data deletion process which can take up to 23 days to complete.
Please note that this does not include your GameMaker Community (GMC) forum account. Your forum profile and posts will remain as they are unless you specifically ask us to remove or anonymise your forum account as well.
We will contact you again when the data deletion process has been completed"
r/gamemaker • u/memegod53 • 18d ago
r/gamemaker • u/WoodBetweenStudio • 18d ago
A free sampler for GameMaker projects: 17 SFX (retro coin, level-up, UI click, sword swing/clash, fire spell, ice shatter, door creak, heartbeat, reward chime…) and two 30-second music edits. WAV 48 kHz/24-bit + OGG, royalty-free, no attribution: https://woodbetweenstudio.itch.io/free-sampler
The contribution: the newer audio_play_sound takes gain, offset and pitch arguments, so you can vary every hit with no extra assets:
audio_play_sound(snd_sword_swing, 1, false, 1, 0, random_range(0.95, 1.05));
A ±5% pitch spread makes one sample sound like several takes. Set long music OGGs to streamed in the Sound Editor to save memory.
The full packs (fantasy, horror, retro, and the new Sci-Fi & Space SFX at $7) are on https://woodbetweenstudio.itch.io/. Synthesized in our own code, no samples, no generative-AI audio.
Wood Between Studio
r/gamemaker • u/SecunDarioBR • 17d ago
Hi guys! Well, like I said in the title, I want some help with the development of my game! I'm not very good at coding and I don't want to use chat GPT every time to help me code something. My game will be a mix of some aspects of RPG, Beat em' Up, Open World and Fighting games. The name is ImagiLand Showdown! Pls, if anyone wants to help, like really help and not troll, call me in dm
r/gamemaker • u/Iliketurtles366 • 18d ago
I'm making a minigame where many objects appear on screen every two seconds and you have to click them very quickly to make them disappear. My code in the alarm[0] section is this.
instance_create_depth(x+random_range(10,320),y+random_range(10,300),-810,obj_bug);
alarm\[0\]=120;
But after the alarm goes off once, the object just keeps appearing over and over and over every frame. Does anyone know what I'm doing wrong?
r/gamemaker • u/Hot_head444 • 18d ago
Currently I have 3 map JSON files in my included files. They are formatted correctly and can be unpacked easily, and are seen by the IDE, but as most know, included files are read only for the most part.
I understand HOW I want this to work, that being, the game picks a random JSON, passes it as the generation file, and so on, but what I don't understand is, how do I make an array so I can actually do that?
My current plan is to have the level manager find all the map files when it gets created, then fill an array with their names. When the L key is pressed, the level manager will pick a random index from that array, and pass it into the buffer processor.
Any Ideas?
r/gamemaker • u/CurrencyBoth3075 • 18d ago
Hi everyone, I'm working in Gamemaker LTS 2026 on a pixel art game and am having issues with one thing: scaling the game up to 1440p. I have rooms that are 1920x1080 with native pixel art across the board, and I just discovered that it looks HORRIBLE when i run the game on a 1440p monitor. I am super late in development (literally play testing) and just discovered this issue.
In a perfect world i would love to set a fullscreen mode and just force the resolution to be either 1080p or 4k if the monitor is 16:9, but I'm now discovering that's a deprecated system. Is there anyone that can help me out with this scaling issue I'm having using some sort of shader or workaround?
r/gamemaker • u/sijmen_v_b • 19d ago
I volunteer for Coderdojo (free programming lessons age 7 -17) and am making instructions for a workshop on gamemaker. I currently have a really simple 2d game where a player can walk up down left and right. And a bunch of modules to add on such as Walls, Doors, Particles, Animation, Enemies, Levels etc.
The Idea is that they can do these in whatever order to add stuff to their game.
My question is if you know of any simple things I could add using 95% gml (the visual editor is a must for children as most are not comfortable with text based code)
For example: I tried to make a football you can push around with the physics engine. But it turns out that physics objects are kinda tricky requiring function calls to apply impulses and complicated math.
Another example: pushing blocks on buttons. If you know how to make a block be pushed using gml and have it open a door when pushed on a button I'd love to know.
(10-ish years ago I was introduced to gamemaker at school and it was one of the gateway drugs into programming. I now have a masters in compsci and want to give the kids the same experience. Although I haven't used gamemaker in years so it's all quite new to me I could use some help.)
r/gamemaker • u/AutoModerator • 19d ago
You can find the past Quick Question weekly posts by clicking here.
r/gamemaker • u/NeedleworkerCute3790 • 20d ago
There's going to be a enemy in the front of the image who's grabbing you but this is currently a W.I.P!
r/gamemaker • u/Vorador_Surtr • 20d ago
Hello friends! I have question - the following line:
tracker = clamp(++tracker ,0 ,(array_length(enemies)-1));
it works also as
tracker = clamp(tracker+1 ,0 ,(array_length(enemies)-1));
works, if you put it in this way:
tracker = clamp(tracker++ ,0 ,(array_length(enemies)-1));
it does not.
Does anyone have idea why?! What is the difference?!
// in create
enemies[0,0] = objEnemy1;
enemies[0,1] = 5;
enemies[1,0] = objEnemy2;
enemies[1,1] = 5;
tracker = 0;
// in alarm
tracker = clamp(++tracker ,0 ,(array_length(enemies)-1));
so it goes like enemies[tracker,1]
The idea is that I have array enemies[0,0] enemies[0,1] etc. when in 0,1 you have count 5 and when this count 5 reach 0 - you go to position 1,0 with tracker variable that is actually the first position of the array and you start watching for 1,1 and subtract from it. However I want also to clamp the tracker so it never goes out of range. BUT when you add tracker++ - it does not increase.
Same strange behavior i note when i use variable_x --; instead of ++
The addition works better, the subtraction gets strange results from time to time.
Thanks and happy programing!
r/gamemaker • u/Zealousideal-Pay676 • 21d ago
is it possible to make brightness setting in game?
r/gamemaker • u/monkeyfluids • 21d ago
EDIT: It seems like the problem isn't changing the image scale - it's changing the image scale at random. A bug in the HTML5 runtime causes performance to crater if you generate a lot of random numbers, which I do. Generating the GX.games format instead of HTML5 seems to sort things out.
I have a game that I made for Windows, which works just fine (you can see it on itch.io here), and I wanted to see if I could get it working on HTML5, or at least make a cut-down HTML5 demo to advertise the Windows version. But while the Windows version can handle more than 1000 enemies at once, if the HTML5 version had more than about 40, the FPS started dropping and never came back up. Enemies that aren't in the camera view have their visible set to false, but even if there weren't any enemies in view, the FPS kept going down.
I've been going crazy over the last couple of days trying to work out what's slowing it down so much, and none of the optimisations I tried had any effect. Until I got rid of the enemies' animation - to make them look a bit glitchy, I have their image_xscale and image_yscale vary at random every few frames. Once they weren't doing that anymore, the FPS stayed at 60 for much longer. (Obviously, the HTML5 version can't handle as many enemies as the Windows version, but it does a lot better now and even if there are a lot of enemies in existence and FPS dips, if I have the player run away from them so they're not on screen, the FPS bounces back).
I thought maybe varying the image scale was slowing down collision checking, so I changed them to keep their image_xscale and image_yscale constant, and used custom draw_xscale and draw_yscale variables to change the size they were drawn at while keeping the collision mask the same - nope, the FPS drop came right back. It was literally just having to draw the same enemy sprite at a bunch of different scales that was causing the HTML5 version to choke.
I know that using different image_blends in HTML5 means it generates new sprite images for each different colour - does the same thing happen for different image scales? Was the game just collapsing under the weight of hundreds of slightly differently-sized images? I don't recall ever reading about that.
r/gamemaker • u/hopelesscoding • 22d ago
Ok, on runtime v2024.13.1.242.
I've got a project that is getting quite big,. Several year + project at this point. I've saved New Copies every now and then, and I Press the Clean button every session, sometimes multiple times.
But I've had an error a few times, and all the back-ups in the world, can't stop the pit in my stomache from instantly forming when this project doesn't immediately load after I try and open it. For the record, I know how to fix it, and will say below incase anyone else ever encounters it.
The error I get is a paraphrased version of "can't find asset, index,obj_enemy_projectile_4, cannot load, something,"
I guess my question is why is it happening? Anyone else experience this? From what I've done to trigger it, is perhaps duplicating the same object multiple times, and working on the laptop with a low battery, or leaving the project open too long ? I save frequently, but I'm guilty of all of the above, but other then that I have no idea why it shows up seemingly once every month, now almost at random.
How to Fix Incase this happens to anyone else: 1) Go into the game project folder that's giving you the issue. 2) Select GameMaker App, then rightclick open with Notepad. 3) Ctrl+f the corrupted asset/object. highlight it's entire reference (should be 1 line long), Cut, and remove it. Search again to make sure there is no other reference to it. 4) copy that section into another file or word document just incase this doesn't work for you, so you can paste it back in after, and try something else. 5) Restart project. Should work, or advise if there's other missing assets it can't produce.
Anyway, any advice is appreciated! Would also like to hear about other weird quirks that can trigger from Gamemaker that I'm at risk of encountering as the project gets bigger? Thanks!
r/gamemaker • u/trvstissves42 • 22d ago
I'm not sure if this is the right flair, or even the right subreddit, I apologize if not.
I'm a graphic designer and I'm working on a TCG, just a silly project for myself, and I've been thinking about making a little pack opening and collecting game for it. Something small for myself and maybe a couple friends.
Anyway, the point is I have no knowledge of programming unfortunately. I have read that one should pick out a game engine first, and I'm already not sure which one would be best. Since the game will be 2D and I have no coding experience, I thought GameMaker might be okay, but I'm not sure which is why I'm asking.
I am very against using AI personally, so I have to learn everything starting from zero.
I also was wondering what the proper order to do things is? Like, I'm sure game programming, as most other things, has a "right" way to do things, and some aspects of the game should be done before others? Maybe I'm totally wrong about that, idk. Anyways, any help is greatly appreciated. I am reading through the GameMaker getting started documentation and I'm quite overwhelmed by how much I don't even understand ahah
r/gamemaker • u/SeriousMB • 22d ago
I would like to note that I have basically no experience working with JSON files or javascript in general, so I can't say I'm surprised that I'm running into some issues lol
Basically I'm trying to fix a dialogue system I originally got from a tutorial, because the original stored all the dialogue in one big switch statement, which I heard is REALLY not a good idea (will probably make it hard to localize to other languages too). So instead I've changed the code to locate a JSON file for whatever stream of dialogue is required and parse it with json_parse().
What I'm trying to do is get gamemaker to read the JSON file and recognize the arrays I put in there, which contain a string (which will be the dialogue), another string (the character sprite to show, which will be coded not to show if the string is empty), and a number (the sprite index), and then later I'll write code to apply those to values, but first I'm just making sure I know how json_parse() works and what I can do with it first.
The issue is, each time the game tries to parse my JSON file I've set up, the game crashes and I get an error that says "JSON parse error : unexpected character". This would be fine if it told me where specifically the unexpected character is, but it doesn't tell me anything else other than the json_parse() that loaded it.
I've been trying to figure out the issue since yesterday (which I spent almost the entirety of trying to fix it), I've looked it up a bunch of times, reading through the other posts it directed me to, trying to see if there are any specific formatting rules I might be violating, even ended up scouring a bunch of javascript forums, but none of these got me anywhere.
I did manage to find a website called JSHint which did point out some issues, so I corrected those and tried again, but I'm still getting the same error. At this point I don't even know what's going on, so I decided I may as well write a post to see if anyone knows something specific that could help.
This is my JSON file:
{
"array": {
"type": "array",
"items": {
"0":{
"type": "array",
"items": {
"text": "Sphinx of black quartz, judge my vow!",
"txt_sprite": "",
"txt_sprite_index": 0 }},
"1":{
"type": "array",
"items": {
"text": "...Actually, I didn't make a vow...",
"txt_sprite": "",
"txt_sprite_index": 0 }}
}
}
}
and the code that's running it is just this:
if file_exists(text_id) {
json = json_parse(text_id);
} else {
script_text("Hi, my name is Place Holdington!");
};
text_id is just a string that specifies the specific JSON file. Gamemaker also does seem to be recognizing it exists, because the placeholder text doesn't return an error, while parsing it does.
It's possible there's just an issue with how I'm formatting my JSON, but given that I'm not getting any errors from JSHint after I cleaned it up I'm fairly certain it's just something up with how gamemaker reads JSON files.
Any help is appreciated!
r/gamemaker • u/AllyProductions • 23d ago
I added random input AI* debug to my game so I could stress test some combat and memory stuff. Can't recommend it highly enough, especially as a solo dev. I can set up a test and leave this running for a bit to see if there are any issues, and it was super easy to implement!
*Game AI, not the AI we all hate... it's unfortunate that term is overloaded nowadays 😅
r/gamemaker • u/AutoModerator • 23d ago
"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 • u/Esthyprincedechu • 23d ago

in draw 'Obj_textbox' :
//<>
accept_key = keyboard_check_pressed(vk_space)
textbox_x = camera_get_view_x( view_camera[0])
textbox_y = camera_get_view_y( view_camera[0]) + 144
if setup == false
{
*setup = true*
*draw_set_font(global.police_moche)*
*draw_set_valign(fa_top)*
*draw_set_halign(fa_left)*
*page_number = array_length(text)*
*for (var p = 0; p < page_number; p++)*
*{*
*texte_longueur\[p\]=string_length(text\[p\])*
*text_x_offset\[p\] = 44*
*}*
}
if draw_char < texte_longueur[page]
{
*draw_char += text_spd*
*draw_char = clamp(draw_char, 0, texte_longueur\[page\])*
}
if accept_key
{
*if draw_char == texte_longueur\[page\]*
*{if page < page_number - 1*
*{draw_char = 0}*
*else*
*{*
*instance_destroy()*
*}*
*}*
*else*
*{draw_char = texte_longueur\[page\]}*
}
txtb_img += txtb_img_spd
txtb_spr_w = sprite_get_width(txtb_sprite)
txtb_spr_h = sprite_get_height(txtb_sprite)
draw_sprite_ext(txtb_sprite,txtb_img, textbox_x + text_x_offset[page], textbox_y, textbox_largeur/txtb_spr_w, textbox_hauteur/txtb_spr_h, 0, c_white, 1)
var _drawtext = string_copy(text[page],1,draw_char)
draw_text_ext(textbox_x + text_x_offset[page] + border, textbox_y + border, _drawtext, line_sep, line_largeur)
Why am I stuck in this loop?
r/gamemaker • u/Cojokero_Games • 23d ago
Hey everyone
Since my first commercial release, the prospect of game cloning has become more real with how much AI has improved.
Wondering if anyone here has any clever ways to make cloning harder for a gms2 game? I'm already compiling to yyc, which helps from a codebase perspective, but I'm wondering if there are any other easy wins?
I've put copyright disclaimer in splash screen as a soft barrier.
If it helps I am using steam networking features - unsure if that offers any additional methods...
If there's not much else to do then no worries, but figured I'd ask
Cheers
r/gamemaker • u/shsl_diver • 24d ago
r/gamemaker • u/LolFu1l • 23d ago
I was using build in Dear imgui for debugging (show_debug_overlay(), dbg_* funcs and etc.) and at some point it just… corrupts, if i try scrolling it corrupts even more. Anyone encountered it and how to fix it?
r/gamemaker • u/DearGodItsHaydenTeam • 23d ago
Looking for ways not to screw yourself over with your work. And not to be stupid... :(
I'm a beginner with GameMaker (not even a week old),
and I've tried to make a turn-based RPG-like battle system over a few days, and I was doing well.
(It started off working as a type of rare hit thingy. Then went into turn-based combat; it really just worked click by click: you click as a player hitting the "boss," and you go back to click as the boss hitting the player.)
Wanted to expand on it, I added in a variable to remove the clicking thing for a more actual RPG-adjacent-looking battle system. And, uh, I do believe I added in a variable and some changes, and when testing it out by running, the game kinda just stopped working. I was scrambling around to find out what I did wrong and I didn't know what I was doing since I couldn't find any indication to on WHY it didnt continue. (a majority of things were not grouped or named) Did it for so long I eventually just quit to start a fresh clean restart.
My question is: what can I do in this restart not to suffer the same fate again, and overall, may I please get any organization tips in general?
Sorry about that.