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
1
vote
2answers
3k views

How to randomly spawn objects off-screen close to the player?

I am making a zombie game. I want to have it so zombies randomly spawn. My code for this is: ...
1
vote
1answer
2k views

Does the license of games made with Game Maker need to include the Game Maker part?

In the default license generated by Game Maker for your games, some of YoYo Games stuff is mentioned. Are those necessary to be shipped with an application made with GM? Is it legally ok if I remove ...
1
vote
1answer
202 views

Someone downloaded my game but it failed on Game Start due to code that doesnt exist

As stated in the title, they get the following error: ...
1
vote
2answers
51 views

Do I need multiple exports from Game Maker to support Windows versions above 7?

I just created a game. At the time of exporting it, I targeted windows. I use windows 7 on my computer. Obviously the game is compatible with windows 7, but I do not know if it is also compatible ...
1
vote
2answers
1k views

Game Maker Studio 2 problems with too many instances

So I am trying to make a management game, a space station simulator if you will, with potentially hundreds and thousands of customers entering and leaving the station every game day. So my plan of ...
1
vote
1answer
1k views

How to add clickable text link in Game Maker Studio 2?

I was wondering if anybody knew how to add text, that when clicked, would take you to another website in Game Maker Studio 2.
1
vote
2answers
4k views

Drawing only objects that are currently in viewport [Gamemaker]

Following on from my previous question about optimising large object counts in Gamemaker, I am looking for a method for the solution proposed by liggiorgio. My game has large numbers of small, sprite-...
1
vote
2answers
2k views

Multithreading/Optimisation for Random Generation in Gamemaker

I have a FurGeneration() script in my game; when run, it randomly generates individual oFur objects in specified areas in the ...
1
vote
2answers
647 views

Is an array in Gamemaker infinitely expandable?

Arrays in Gamemaker Studio seems to not need to have its size be declared, and infact it doesn't seem to be possible to declare a finite array. Instead, it seems it just keeps indexing for each ...
1
vote
1answer
8k views

A guide on multi-direction and multi-animation sprites?

In YoYo Game Maker Studio: Is there a way (or an already-created library) I can specify all the possible sprite frames and directions in a way I am allowed to do it in Clickteam Fusion? As far as I ...
1
vote
1answer
4k views

Leaving a trail in Game Maker Studio

I'm making a game in Game Maker that involves the player leaving a trail of debris behind them. This trail is permanent and has gameplay implications (for which I'm using a fairly coarse grid to store ...
1
vote
1answer
581 views

game maker stop overlapping buildings

I'm trying to make a game with real time strategy elements, where you can build several different buildings. The problem is that I can't seem to make the buildings stop overlapping. That is too say, ...
1
vote
1answer
513 views

Variable not set before reading it error in GameMaker Studio 2

I am following along with a guide. I'm trying to reference code from an instance in my room, but whenever I try to run the script I get this error: ERROR in action number 1 of Create Event for object ...
1
vote
1answer
147 views

How to support more than 4 XInput controllers?

I'm making a multiplayer game in GameMaker Studio 2. The game supports upto 12 controllers, where the first four are XInput controllers. The rest would be DirectInput. If I try playing with 8 Xbox ...
1
vote
1answer
41 views

Tiledata management

I've been trying to create a grid-based open world game. In order to do that I've decided to create a personal map editor. The problem I've encountered is handling data because of the actual data size....
1
vote
2answers
1k views

How to make an object with its own sprite draw an additional sprite on top of itself

I'm making character select buttons for a Game Maker Studio 2 game, hoping to do so by just having a single object I can edit on an individual basis to change which character it represents. I also ...
1
vote
1answer
74 views

Collision detected at different times depending on speed?

Imagine a scenario where there are four cubes. Two blacks that do not move, one red moving at a constant speed of two (2) straight and the other blue moving at a constant speed of five (5) also ...
1
vote
2answers
628 views

How to make a layered health bar in GML

I am currently working on a game in Game Maker Studio 2 where the player character is capable of increasing their maximum health beyond a starting value of 30, by increments of 10. I want to represent ...
1
vote
2answers
76 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 ...
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 ...
1
vote
3answers
437 views

Help setting up money system in game maker

I am trying to make a clicker game where one button makes the item and then one button sells the item. My problem is that I don't know how to make the one button stop selling when it reaches 0 items ...
1
vote
1answer
81 views

Sprite sizing for my game [closed]

I have recently started a new project with my SO (Significant other)and she is doing the art for my game (Pixel art) now i have always gone with 32x32, 64x64 and so on (Using 16x scale) but she thinks ...
1
vote
3answers
8k views

game maker place_meeting multiple objects

I am working on a simple game that contains two objects the player and the ground, and I used place_meeting to make the player walk on the ground object and it works fine but when I try to add another ...
1
vote
2answers
3k views

How to end the game after the player has defeated all the enemies in Game Maker?

I'm making a simple version of the game asteroids as I'm learning how to develop with Game Maker Studio. Currently, mostly everything works properly except that when the player destroys all of the ...
1
vote
1answer
2k views

Basic collision issues in gamemaker studio

I'm really new to the game design world so I'm sorry if this question is stupid, but here it goes! I have 3 objects, a square that the player controls, a wall that the square should collide with and ...
1
vote
1answer
2k views

Anchoring a sprite to a specific x & y on another, regardless of rotation [Gamemaker]

I have a sprite, sDetritus, with a corresponding object, oDetritus, and an sTurret and ...
1
vote
1answer
822 views

Can you have an embedded browser in Gamemaker:Studio

I am trying to make a sort of browser in gamemaker and I wanted to know how to embed a browser within a game. Are there any extensions I need to download?
1
vote
1answer
6k views

(Game Maker Studio) How do I make a high score system?

For my game, I want a way to make the game remember the top score. I know how to make the game save, I just need a way to save a high score. This is my current system, that has not been working: <...
1
vote
1answer
142 views

How do I draw text once a countdown ends?

I created a countdown in Game Maker using a variable of time. The countdown works properly and is displayed at the proper coordinates. However, when the countdown reaches zero, I want to make the ...
1
vote
1answer
181 views

check if there are planets in the vicinity [duplicate]

I'm trying to make a random galaxy map in gamemaker, with several planets at random places. The problem I have run into is that some planets will be too close together. I need a way to put a minimum ...
1
vote
1answer
7k views
1
vote
2answers
3k views

Are there any good books for GameMaker:Studio?

I'm just wondering if there are any good books for the GameMaker:Studio software? I want to using it to prototype my projects and will be travelling for the next few days so I thought it might be a ...
1
vote
2answers
93 views

How to script sequential events in GameMaker?

I am wondering if there is an elegant way to script sequential events in GameMaker 2. In Godot 3.1, it is very easy to chain events together using yield() and ...
1
vote
2answers
482 views

How to make a vision cone for the enemy in game maker?

I'm making an enemy object where the enemy look for the player when he's going on a patrol I want the vision cone to changes direction corresponding to the sprite.When the sprite turn right,the cone ...
1
vote
2answers
99 views

How to get the Javascript equivalent of GameMaker's `hspeed` and `vspeed` given only `direction` and `speed`?

I'm using a NodeJS server to control NPC movement in a multiplayer game, and when they get too close to the edge of the room I need to reverse either the horizontal or vertical components of their ...
1
vote
1answer
126 views

GML: check ds_queue or ds_stack for equality (identical contents)

Is there a nondestructive way to check whether two queues or stacks contain identical values? For example: ...
1
vote
1answer
615 views

How to make a horizontal scrolling menu in Game Maker Studio 1.4?

I know how to place the items you see in the picture, my problem is how do I move them? How do I know if the player is swiping right or left? I made the items with a ...
1
vote
2answers
90 views

Any way to interface methods in objects?

Say I have object A, which has children B, C and D. In OOP I would have A be an interface containing method action(), then I would have B, C and D implement A and, ...
1
vote
1answer
154 views

Gamemaker Multiplayer Game

I'm trying to implement multiplayer into my game using the server client model. What is the best method of synchronozing the game between the clients? What I'm thinking is that the game runs on the ...
1
vote
1answer
2k views

Unity or Monogame or Gamemaker 2 for an experienced application developer? [closed]

So i know this question has been hammered down several times but please bear with me. I used to be a C# .Net application developer but i am no longer employed, i am pretty good at C#. I want to get ...
1
vote
1answer
116 views

How to make an irregular shape that displays how far a unit can move through the map?

I'm still new to programming, and I was wondering if there is a way to make an irregular shape that displays how far a unit can move through the map taking in account pathing around obstacles. For ...
1
vote
1answer
75 views

Prevent parent alarms to activate a child alarm event

I'm working on a small game using Gamemaker Studio 2 and I've noticed that my Parent o_enemy.Alarm[0] Is activating the Child ...
1
vote
1answer
158 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 ...
1
vote
1answer
1k 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 ...
1
vote
1answer
727 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 ...
1
vote
1answer
383 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
230 views

How to blend the surface with HTML5 canvas?

I can simply blend the surface in GameMaker using these codes: ...
1
vote
1answer
102 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
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 ...
1
vote
2answers
251 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 ...

1 2
3
4 5
9