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
32 views

Game Maker Studio 2: Why is my variable not being properly changed?

Ok, so in my game you have a party of four characters that you control one at a time, each of which can lose health and die independently of each other. All of the player character objects use ...
0
votes
1answer
40 views

Game Maker 8 high score table pixel size

How big is the high score table in Game Maker 8? I wanted to make a background image for the table but each time I do the background is either too big or too small and makes it blurry.
0
votes
1answer
88 views

How do I let game maker know that recieved json data is an array?

In python I created an array called lobbyList = ["Awesome","Funny","Epic"] I sent this array to Game maker studio 1.4 using JSON, I made a variable called ...
0
votes
1answer
2k views

Creating a click and drag system in GameMaker Studio 2

I am attempting to create a click and drag system in GameMaker 2, for example a dress-up game or maybe a puzzle. How would I go about getting the objects to click and drag? I'm trying to get it so I ...
-2
votes
1answer
474 views

How to use discord-rpc with GMS 2?

I want to add Discord Rich Presence to my game using discord-rpc but I don't know how to do this?
0
votes
1answer
1k views

How can I respawn enemies in Gamemaker Studio 2?

I know this may have been asked before but I would like an updated answer. So how do I respawn enemies in Gamemaker Studio 2? Say I have an object called objBullet ...
0
votes
2answers
899 views

When there are multiple objects of the same type, how do I know which one I am colliding with?

I'm working on a platformer game using Gamemaker Studio 2. , and currently I'm dealing with implementing platforms: (Platforms are able to pass through from the bottom, but remains solid when landing ...
1
vote
1answer
358 views

Tic Tac Toe Victory State Detection [closed]

Below is the code I'm using to check if the board state has a tic tac toe style victory state. The board is always square and is made of an array of objects that keep track of their own completion ...
0
votes
1answer
153 views

How to prevent images from being resized in game maker?

This warning appeared in the compilation menu of my game. The images were rescaled in half. I understand that this happened because they had very large dimensions. It turns out that the images, ...
1
vote
1answer
131 views

GameMaker Studio 2 - How to place object back beyond X coordinate for looping (warp)?

I'm making a side-scrolling shooter where I want an object to move from right to left (towards negative X), then, when it's passed out on the left side, jump back to beyond the window width (right ...
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
votes
1answer
495 views
0
votes
1answer
83 views
0
votes
1answer
66 views

Why is my image speed not changing?

Following is my code for my platformer. However, in the //Run with left shift// section when I made the image speed change, the speed is still the same and doesn't ...
0
votes
1answer
54 views

When I start running, it won't stop when I let go of shift. Why?

Following is my code, and after I let go of shift the image speed goes back to normal but not the variable I created called movespeed. What should I add or change ...
0
votes
1answer
101 views

How can I properly detect my cars collisions using hitboxes?

I have created two car objects and their current speed is represented as the len variable. This is the code: Under Blue Car Collision Event: ...
0
votes
1answer
127 views

Unknown variable direction in object.direction | Game Maker

This is my first question on a forum so please forgive any mistakes I may have made. I am trying to make a game similar to the classic "Asteroids". I am trying to split the asteroids in two when a ...
0
votes
1answer
219 views

Rotate a ds_grid 90 degrees in GMS2

I need a function that allows me to rotate a grid data structure an arbitrary number of times 90 degrees clockwise. Currently it doesn't appear as though the function has any effect on the ...
0
votes
1answer
94 views

How to get buttons to follow the GUI perfectly while also being usable in GameMakerStudio

Basically I'm trying to figure out how to make a button, that you can interact with that shows above the GUI draw event and locks perfectly to the screen. The current draft I have the button is below ...
0
votes
1answer
314 views

Some GAME MAKER function for windows close button?

In my game there are variables that go through all rooms, so if the player leaves the "variable x" worth 10, and goes to another room, when he returns there is the "variable x" worth 10, same thing ...
-2
votes
1answer
221 views

In android studio, how can I move ball to point I click? [closed]

I try to create a game like billiards. I want to move the ball the point I clicked.
0
votes
0answers
94 views

Assembling a party of adventurers

Ok, so my little dungeon runner game has its functioning adventurer characters as objects, but unfortunately I'm having trouble figuring how to let the player assemble a party of four of them like I ...
3
votes
0answers
142 views

Game Maker Studio 2, Shaders not working as intended in webbrowsers on mac

The shader output of my html5 game in Game Maker Studio 2 looks wrong on webbrowsers on MacOS. Sometimes the shaders lack completely and at other times the shader colors look completely different. ...
0
votes
2answers
53 views

Equal objects with independent variables in Game Maker?

Think of a situation with two distinct runners with different speeds. They will have to walk a circuit in a straight line with two obstacles (police). Below is an illustration of the situation: 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
112 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 ...
9
votes
1answer
299 views

How to draw a Voronoi Splitscreen view in GMS, where each player's screen area is a polygon shape?

I'm trying to implement the Voronoi Splitscreen effect that Squirrel Eiserloh described at GDC 2016, and I'm having trouble figuring out how to 'clip' the rendered scene for one player along a ...
0
votes
1answer
41 views

Gamemaker Studio 2 html5 game sfx influence background music volume

When I run my game in html5 the game sound effects for shooting makes the background music less audible. It is like the volume of the bg music goes down. And when shooting is done it goes up again. ...
1
vote
1answer
73 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
votes
1answer
357 views

Why is the line not being drawn?

I'm trying to add a few polishing touches to my puzzle game (made in Game Maker) in the vein of Ironclad. The following code is for adding a gem object to a stack that already has at least one other ...
0
votes
3answers
78 views

How to resolve this problem with an object's collider?

In my game there is an obj_maze: The width of the maze is 10 pixels in all its extension. In the game, the goal is to get the obj_Cube through the maze. obj_Cube: The obj_Cube is wider than the ...
-3
votes
1answer
635 views

Game maker studio 2 Random spawn locations are not random [duplicate]

This is a redo of another question I asked. First I want to clarify that I am indeed using drag and drop. So saying something like "maybe switching to gml will fix your problem" is appreciated, but ...
-1
votes
1answer
229 views

GameMaker Studio 2 random isnt random [duplicate]

I'm making a game where things randomly generate. It used to work, but now all the sudden they keep spawning in the same area every time. does anybody know a fix?
-1
votes
1answer
316 views

How to limit where an object spawns GameMaker Studio 2

When the game starts, I am trying to generate an object in a random area. It's working, but sometimes the object spawns in the players view. How to have an object that generates in a random location, ...
2
votes
1answer
99 views

In Gamemaker Studio 2 how can I find out in code whether the platform is HTML5 or not?

I want to be able to run or not run code depending on which platform I am building for. Some code should only run for the HTML5 platform. How can I find out whether the platform being run is HTML5 ...
1
vote
1answer
456 views

Why are the randomly generated numbers not random?

I'm trying to make a game where the damage you deal is rolled by a dice. It all works. However, it keeps on giving the same values in a row so it isn't entirely random ...
0
votes
1answer
941 views

How to make 4 way walking animation in game maker studio 2?

So I am trying to make a 4 way movement for my character, and I cant seem to get the walking animations to work for it. The character moves fine, but whenever he moves, the walking animation doesn't ...
2
votes
1answer
383 views

How to make a boss control multiple object spawners in Game Maker Studio 2

I'm working on a boss fight for a 2D platformer/shooter game in the vein of the Megaman franchise. I expect part of the fight to include this boss causing large boulders to fall from certain points on ...
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
votes
1answer
866 views

Does Game Maker Studio 2 have a 'room edge' variable or similar?

I made a sort of "floating camera" for a 2-D platforming game set to follow the player by default but can be made to snap to a stationary point in a room for boss battles and the like, but I've ...
5
votes
0answers
1k views

Slope handling in a tile-based platformer

I'm trying to implement slopes in my 2D tile-based platformer made in GameMaker Studio 1.4. I'm done with the normal solid block tiles, they work like charm, but slopes are even harder than I ...
1
vote
1answer
72 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 ...
0
votes
1answer
151 views

data structure fails to instantiate GMS2

Error message: Data structure with index does not exist. at gml_Object_enemy_actor_Step_0 (line 10) - hand[i] = ds_stack_push(deck); Code snippit that is referenced in the error message: <...
0
votes
1answer
231 views

Jump function moves object horizontal after dash function

I have a dash function in my game as well as a jump function. Both of them works completely fine all by themselves. The jump works find and the dash works fine, however, I want to be able to jump ...
0
votes
1answer
551 views

Issues making a gradient square in glsl es 2.0, Gamemaker Studio 2.0

I made a triangle list with 4 triangles, having the middle point a different color. And then aim to combine the triangles to get a nice gradient. But the edges of the triangles create unwanted lines, ...
3
votes
1answer
480 views

How do I move a camera to a new X and Y position when the player collides with a certain object?

The lowdown is this: I'm making a 2D overhead game that takes place in separate screens in a room. Each screen is separated by a few blocks of black space (to give the impression of screens being ...
0
votes
1answer
117 views

Delta time causing comparison issues due to floating points

I am working on a game in Game Maker Studio: 2 and am using Delta Time for the time. I understand what it is, how to get it, and how to use it, but I am running into issues when I need to make ...
0
votes
2answers
72 views

Nested reference problem

I have an array of objects tied to a global array in GMS2 When I try to reference the variable used to position the object I get errors saying the variable hasn't been declared. The error also says ...
1
vote
2answers
585 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
votes
1answer
178 views

How to bypass build-in variables?

I've been busy working with Gamemaker Studio 2 and I've noticed that it has quite some build-in variables. Like 'x', 'y', 'speed', 'health'. These variables have already a set function, and it ...

1 2
3
4 5
9