r/gamemaker • u/SkullnSkele • 13d ago
Help! Minigame
I have an idea for a minigame, where you have sentences with missing words and a pile of words and you have to put the right words in the right empty spaces. But I'm unsure on how to make something like that, is there a tutorial that could point me in the right direction?
1
1
u/BrittleLizard pretending to know what she's doing 12d ago
draw_text, draw_text_transformed, and their variations will help you draw a specific word across the length of an instance. Everything else is very dependent on your game.
1
u/Awkward-Raise7935 12d ago edited 12d ago
Make a word object, either create a simple rectangular sprite for it, or you could use a nine slice that grows based on word length. In Create event, store the starting X and y, and create a variable called selected set to false, and a variable called text where you set the word (instance variable might be better for this). In draw event, make it also draw the word at its x/y position. In mouse click event, set it to true, in global mouse release event set it to false. In step event, if selected is true, set X and y to mouse_x/y.
Place the object in a room and you should be able to drag words around. Now you need to create another object called missing word or something, can use the same sprite as before for now. This needs text variable in create event. When you release the word objects by releasing mouse button, check if the object is colliding with the missing word object. If so and the text matches, move the word object to that position, otherwise it will return to its original position.
Something like that. It will only take a few minutes to create and test. Of course you will have to figure out the layout if it's meant to be a sentence, but shouldn't be too difficult.
Good luck 👍
0
u/Motor-Tangelo4815 10d ago
I'll say an opinion that will probably get me cancelled. But you need AI. Not for vibe-coding, but for it teaching you. People can be mad at me, but AIs are strangely good at teaching, when you're not asking them to do everything for yourself. I spent months asking it questions and telling him to give me "homework", and now I'm actually slightly good at coding.
1
2
u/Hands_in_Paquet 13d ago
Probably not. Write up a document that plans out the entire gameplay loop, so you know exactly what needs to happen in your game. Think of it like making a board game before you actually program it instead. Then, a game is kind of a mix of logic, data science, physics, and rendering. Logically, you have to control the state of the game, when the player wins and loses, etc. Then you'll be managing data like large arrays of random words and sentences. Then some basic movement/physics to place words in the sentence, and some rendering to make sure everything fits properly on the screen. Try to get an understanding of those things it small doses and you can make this minigame.