2022 Developer Survey is open! Take survey.

Questions tagged [game-maker-studio-2]

Game Maker Studio 2 is the latest major iteration of the cross-platform game creation tool made by YoYo Games, mostly used to develop 2D video games.

Filter by
Sorted by
Tagged with
0 votes
0 answers
29 views

How to solve "variable not set before reading" error?

I get the following error in GameMaker Studio 2: ...
user avatar
0 votes
1 answer
49 views

Size of an object based on a variable

The code shown below is meant to change the size of a bullet based on a changing variable. But when I put this code in the create tab, the size of the bullet stays the same, regardless of the variable'...
user avatar
0 votes
1 answer
66 views

Basis of Estimate (BOE) for Freelance Game Developers

First off I wanted to apologize if this isn't the right place to post this; I wasn't sure where else to go. I plan to cross-post this question to the Game Maker forums since that's the engine the game ...
user avatar
1 vote
0 answers
162 views

1Bit Bayer Ordered Dithering Shader

I’m having a problem trying to fix my 1bit ordered dithering shader. This shader is going to be perfect to be used but there is some detail that I would like to fix. First of all, this shader is not ...
user avatar
0 votes
1 answer
784 views

How to create a game app in Game Maker Studio for Chrome OS

There are multiple app types in Game Maker Studio you can export to. Which one would be for a Chromebook? I've tried to research the topic, but I haven't seen anything that clearly states if GMS can ...
user avatar
  • 23
0 votes
1 answer
271 views

Raycasting in GameMaker Studio 2 to implement hitscan weapons?

I'm working on a 2D top-down shooter game in GameMaker Studio 2, featuring different weapons and obstacles all around the levels. Since I don't need a high degree of simulation, I'm implementing ...
user avatar
  • 3,914
0 votes
1 answer
2k views

How to share a game created with the free version of Game Maker Studio 2?

I've recently downloaded Game Maker studio for free and made my first game. Now, I'd like to share it with others. I tried to use the "Export" button and it only creates a duplicate project. ...
user avatar
  • 23
0 votes
0 answers
28 views

coppy ds_list item to variable in GameMaker

...
user avatar
0 votes
1 answer
76 views

How do I create a powerup that affects speed for a limited amount of time?

I am looking to create a powerup such that when the "playership" object collides with it will affect the playership's speed for a few seconds, let's say 30-60 seconds. I cannot seem to ...
user avatar
0 votes
1 answer
190 views

How do I adjust speed of an object in gamemaker studio 2

Currently, I have this in my step event. y += sign(mouse_y - y); I am trying to adjust how fast it goes towards the mouse so I can have it scrolling up and down the screen. sorry if this has been ...
user avatar
0 votes
1 answer
150 views

Debugging shader script in GLSL ES - Game Maker 2 (CompileError)

I am trying to use this shader in the game I am making with Game Maker Studio 2. I tried to convert it for GM2 and here is my result: Shader type I used on GM2 is ...
user avatar
  • 111
1 vote
1 answer
2k views

How to play videos in Gamemaker Studio 2?

I made a little cutscene in Adobe Animate. I was wondering what would be the best way to have it triggered in game-maker studio 2. The Video is .mp4 but I could convert it as I have the .fla file ...
user avatar
2 votes
1 answer
163 views

Formula for attack range using hexagons

I need a little help with a formula to calculate the attack range for my turn-based strat game. Since it's a hexagon grid, I'm having trouble coming up with a formula that would pick the character ...
user avatar
0 votes
2 answers
660 views

How to move X and Y position of sprite in GameMaker Studio 2?

In the tutorial it told me to add the sprite to the object and then add an event to the object called Step. I did this and then added the sprite to the room. The GML code I used in the Step event is <...
user avatar
0 votes
1 answer
774 views

How are Tile Collision Slopes done in Game Maker Studio 2 / GML or in general?

I have been trying to get my slopes to function for almost a month now, doing nothing else with the project. Rewrote it 6-7 times in different collision styles, sometimes coming close to success while ...
user avatar
  • 19
0 votes
1 answer
128 views

Problem when importing color in hexadecimal format from an ini file

In my game I can import a color correctly when it is in the "engine format". Example ("color.ini"): ...
user avatar
-1 votes
1 answer
44 views

Run n' Gun game: Fixating the gun's angle

I am trying to have the gun stick to facing the left or right when the player isn't pressing any of the arrow keys. For instance, if the player is aiming diagonally up-left, then when the player lets ...
user avatar
0 votes
0 answers
41 views

How do I get the id of an object that created a point in a path?

I'm making a rollercoaster tycoon type game. As the title says, I need to get the id of an object that created a path point. These points are currently greated by the rail pieces. I need this because ...
user avatar
3 votes
1 answer
375 views

How to check if all switch objects in a room are set to true?

I'm trying to implement a puzzle mechanic in Game Maker Studio 2. Where you need to activate multiple switches for an event to happen (e.g. opening a door) However, I'm currently stuck in recieving ...
user avatar
  • 630
0 votes
2 answers
2k 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 (those thin tiles that are able to pass through from the bottom, but remains solid ...
user avatar
  • 630
-1 votes
1 answer
221 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 ...
user avatar
  • 630