Questions tagged [game-maker]

Game Maker is a cross-platform game creation tool made by YoYo Games mostly used to develop 2D video games.

Filter by
Sorted by
Tagged with
0
votes
1answer
708 views

How can I make my character jump?

I'm trying to make a platformer. I'm trying to figure out how to make my character jump. I have tried setting a direction variable (after I enabled physics on the room, the character, etc), and it ...
0
votes
1answer
192 views

Multiple points of gravity in GameMaker Studio 2

I'm trying to make a simple 2D prototype in GameMaker Studio 2 where there're multiple points of gravity, essentially static objects in the scene that attract the player-object based on distance and ...
0
votes
1answer
1k views

Fatal error in Game Maker: variable not set before reading it

I have been following the tutorial videos on game maker, and I am at the part where he explains how to get the bullet under the character. I thought I did everything right. He then tested the game, ...
0
votes
1answer
239 views

How do I draw two lines of text in GMS and keep one static?

I am making an intro sequence for my game, but I'm having some difficulty drawing two lines of text. The first line is "DEVELOPED BY:" referenced from a separate language file as "IntroSequence", "...
1
vote
0answers
55 views

How do I remove 'playerachievementcache.dat' from my GMS project?

I am working with a GameMaker: Studio project that outputs a file called "playerachievementcache.dat". It isn't used for anything, and I can't seem to remove it from my project. Is it possible that ...
1
vote
0answers
32 views

How can I use a custom payload name for my GameMaker game?

I have finished compiling my GameMaker Studio .win file. I then copied the Runner.exe binary to the game's directory to run it. ...
1
vote
0answers
444 views

How do I setup Android SDK for GMS?

I am trying to set the path for the android SDK in GameMaker: Studio, but I am having an unexpected ammount of difficulty with this. Initialy, I installed Android Studio and tried setting it's ...
2
votes
1answer
250 views

How do I manually define save paths in GMS?

I want to know if it is possible to set the path for my game's save data in GameMaker: Studio outside of the two default options I am given in the program. The options I get are: ...
2
votes
0answers
48 views

Output save file name conflict [closed]

I am making a game in GameMaker: Studio, but I've run into a problem. Originally, the game would create three possible save files: save1 save2 save3 The issue is ...
1
vote
1answer
149 views

Sending a Tilemap Layer over a socket connection (GMS2/GML)

I'm working on a multiplayer game in GameMaker Studio 2 using sockets and built-in networking functions. I have a server that can receive and send messages to and from clients. What I'm trying to do ...
2
votes
1answer
396 views

Box2d topdown racing game - killing “residual” forces

I'm making top-down race game in GM:S with Box2D, the car is controled in unusual way: player sets direction and engine's speed, and the car uses them: turns to the desired direction and reaches speed....
2
votes
1answer
2k views

How do I check if an item no longer exists in GameMaker Studio?

Let's say I have an array of objects[i,j], which has been fully populated by objects obj_example. I want to delete the ...
1
vote
1answer
884 views

How to create random seeds, randomly in gamemaker studio?

So, I'm working on a match-3 game similar to Ironcast (in concept, it's just seeing if I can). I've finally got the board to generate properly, and to place down random gems. Problem is, it's always ...
0
votes
1answer
58 views

How do I change windows commands to android commands?

I created a game and would like to test it on android, but it does not respond to any touch on the screen, I think it's because I have to adapt the game code for android. Click => Touch I developed ...
0
votes
1answer
412 views

Walking over walls - Game maker studio

I am having an issue with the walls in my game. I have set them as objects and used the script: depth = -y; inside their create event. However, when I walk my character in front of them, the ...
0
votes
1answer
498 views

GameMaker Studio 2: DnD - How do I change Idle animation to Walking Animation

I have an idle animation into an object. I am able to have it moved to one point, left & right but but the problem is transitioning from Idle to Walking Forward. I did tried step but I realized ...
1
vote
2answers
455 views

Loss in quality on downsized sprites in Game Maker

I'm having an issue with sprites quality in Game Maker. I have some sprites used for UI with an original size of 2048*512. I need to resize them in game to 512*128. But when I do, I got a loss in ...
1
vote
2answers
74 views

How do I make instances of enemies spawn after every three keypress movements?

I am making a game, where two zombies will spawn after every three moves my character makes. The problem is that I have no idea how to do this. I have my character moving correctly, in each key ...
0
votes
1answer
163 views

Move an object towards a point relative to its position

I am attempting to move an object a set distance in a direction relative to the objects current position. In other words I want the object to move to whatever point is 144 pixels below the object, and ...
0
votes
1answer
794 views

Game Maker Language's random function always giving the same result

I'd like to create a Snake game, and for that, I'd like to position the sweet which makes the snake bigger in a random position. For that, I use this code in the create event of the object bonbon : <...
2
votes
1answer
527 views

How can I build a data structure that will persist across saves/loads in GameMaker version 8.1 and earlier?

I wish to build data structures such as trees, linked lists, graphs, stacks, queues, etc. in Game Maker. However, the concept of object in Game Maker Version 8.1 and older does not have a reliable ...
2
votes
2answers
1k views

Is there any way in game maker to pass argument parameters to strings executed via the execute_string() function of version 8.0 (pre-studio)?

Last I checked, the game I'm modding was compiled* using Game Maker 8.0 So for a little set up, here is my situation. There's a game out there which has a box in which you can enter a string and it ...
-2
votes
2answers
240 views

How can I spawn only two objects, instead of spawning an infinite number of them?

I have a problem spawning a object twice throughout the game. This is my code: ...
1
vote
1answer
699 views

How to prevent clicking through object in GameMaker

I've been making my first, simple game in Game Maker. You have to click a moving ball (obj_ball), each time you click it, it wil start moving faster. I wanted to add a way to lose the game: if you ...
-3
votes
1answer
1k views

How do I add tiles to a ds grid using script?

I am new to Game Maker Studio 2; how do I add tiles to a ds grid using script?
2
votes
2answers
936 views

Why can't I export an APK from my project in Game Maker?

I'm already extremely tired, it's already hours and more hours seeing tutorials and none of my problem is minimally solved. I have already set everything in global game settings (I believe there may ...
0
votes
2answers
933 views

My GML object doesn't want to inherit variables

here's the error that I can't seem to get rid of. FATAL ERROR in action number 1 of Step Event0 for object side2_obj3: Variable side2_obj3.sidePick2(100004, -2147483648) not set before reading it. ...
0
votes
1answer
187 views

How to make a drawing action run in an left released event in Game Maker?

At first I tried to make the progress bar update using only one object that would command everything (obj_Control), linking to the ...
1
vote
2answers
3k views

Programmatically creating a continuous scrolling background in Game Maker: Studio

I have 15 background images for a 2D horizontal scrolling shooter game and I have been wondering how to insert programmatically those background images in the first level room, as I want them to be ...
-3
votes
1answer
352 views

Getting error in gamemaker studio 2 when using function ord

I'm getting this error: ...
1
vote
1answer
371 views

Gamemaker studio 2 getting error message

I'm currently using gamemaker studio 2 following a youtube guide on making my first game. I am very new to coding and need some help. Im getting this error message attached to my code and I'm not ...
1
vote
1answer
224 views

How to blend the surface with HTML5 canvas?

I can simply blend the surface in GameMaker using these codes: ...
0
votes
1answer
500 views

Game Maker 8.0 - Can I simulate any collision event within the step event of an object including the “other” reference?

Let's say I have two objects. One is "obj_wall" and the other is "obj_player". For the sake of argument, let us assume that I cannot just add a collision event to obj_wall (I truly cannot due to ...
1
vote
1answer
99 views

Game Maker 8.0 - Can a local instance's parent object type be changed?

I have an object I am adding in dynamically. The object type is a generic object that has two strings that are executed in the step and draw events using ...
1
vote
2answers
951 views

Limitation on irandom() of game maker?

I have three objects. All of them in the create event contain an action each (execute a piece of code): obj_r01 => r01=0; obj_r02 => ...
0
votes
1answer
61 views

Show the progression of a loop in GameMaker Studio

I'm using a loop to destroy some objects in my code. ...
0
votes
2answers
1k views

How to change the size of a draw GUI?

I tried to create a HUD button with a sprite of dimensions 1200x1200 to decrease it by code, but I could not. Code: ...
1
vote
2answers
2k views

What is the logic of 'move_towards_point'?

I think I was using the move_towards_point function incorrectly. I discovered that I could not make the object move down. In the create event, if I include the ...
0
votes
1answer
80 views

GameMaker project works fine when targeting Windows but not when targeting HTML5

As mentionned in the title, my GameMaker project works fine when targeting Windows. However, when I build it for HTML5, I got those errors in the Chrome developer console: ...
0
votes
0answers
172 views

GameMaker Android project crashes on IAP

I'm trying to implement a simple IAP in my GameMaker project for Android. The "store" is a simple room with a button, with this code linked to the "Left mouse button released" event: ...
0
votes
1answer
58 views

How to stop player falling through blocks without bounce

So I have this game and I have applied gravity to it and when I load it up it just falls through the blocks and out of the screen. I have tried the bounce event but it just goes into an endless loop ...
1
vote
1answer
696 views

why won't my character move

I am using game maker because I am new to game development and I think it's the easiest to understand because I took a course on it but I put in all the events so that my playerobj moves when you ...
0
votes
0answers
274 views

Using Windows 10 Multi-Touch Functionality In Gamemaker: Studio

I have a multi-touch monitor that I am using in Windows 10. I am getting visual feedback on the monitor itself that multiple touches are being recognised. However, within my Gamemaker game, I cannot ...
1
vote
2answers
4k views

Saving an array in GameMaker with DS Maps

I have the following issue. I'm creating a game with different levels. When the level is generated, an array of random number is generated for later use. If the player leaves the game and come back ...
2
votes
2answers
87 views
0
votes
3answers
142 views

How to make compound data in Game Maker?

In other languages, such as Lisp, there is such a thing as "compound data", where several variables are grouped together. For example, if I want to represent an orbital that rotate around the player ...
1
vote
2answers
241 views

Movement of an object based on thrust and gravity force in 2d scrolling game, need help

I want to make a box "fly" so while user press D it's add thrust then on A it decrese untill 0, W and S control the direction of my box. I have problems after I add the gravity to update correctly my ...
2
votes
1answer
1k views

Drawing thousands of isometric tiles per frame with a high FPS

This question seems similar to other questions but no other topics I saw helped. I'm making a game in GML (GameMaker Language). Regardless of the language/software, this should be a universal topic. ...
0
votes
1answer
154 views

Random numbers inside instance (Game Maker)

I've recently run into a weird problem. When I create instances through with(instance_create){ ... }, I can always randomize their variables individually (inside {...}). However, when I try running <...
0
votes
1answer
175 views

Why doesn't my projectile move in my code?

My projectile currently has a create event with the following code: //move towards mouse move_towards_point(mouse_x,mouse_y,30); My main character has a glob ...

1 2 3
4
5
9