Questions tagged [game-maker-studio-2]

GameMaker Studio 2 (often called GMS2) is a 2D game development IDE. It is the next iteration of GameMaker: Studio, developed and published by YoYo Games. Use this tag only if your question relates to IDE operation, features and game development in GameMaker Studio 2.

GameMaker Studio 2 (often called GMS2) released early 2017, is a 2D game development IDE. It is the next iteration of GameMaker: Studio, developed and published by YoYo Games.

The IDE features Drag and Drop (DnD™) code blocks for easy programming, or a fully fledged code editor using GameMaker's proprietary language GML (GameMaker Language).

The IDE also comes with a full suite of art, object and level design tools and editors, allowing full game creation without the need of any external software.


Resources

196 questions
1
vote
2 answers

Methods of simplifying code (to many IF statements)?

I'm generally new to this style of coding (mostly working in VBA before) and I could use some suggestions. I have my code typed out and it works exactly how I want it to as far as I can tell but it seems like it must be lengthier than it needs to…
1
vote
2 answers

Game Maker Studio 2 (GMS2), game is launching in a localhost browser?

Today I opened my gms2 and launched my game. The game launched into my webbrowser with a GMWebServer This has never happened to me before and I do not know how to stop this. The game used to launch into its own application executable. I do not want…
Julian Silvestri
  • 1,970
  • 1
  • 15
  • 33
1
vote
1 answer

Sorting a list using the quicksort algorithm in Game Maker Studio 2

I am working with Game Maker Studio 2.3.6 to sort the list of character speeds on screen in descending order with an iterative algorithm (bubble sort). However, I plan to have a lot of on-screen characters for some of the battles. Therefore, I…
1
vote
1 answer

ndk-bundle Not Found (GameMaker: Studio 2)

I downloaded the Android Studio and installed the ndk. GameMaker says no ndk was found. I tried to install the ndk separately but it didn't work either. What could it be? Screenshot Android Studio version 3.2.1 Sorry for my bad English
JustCore
  • 67
  • 1
  • 9
1
vote
1 answer

Variable name autocomplete for VSCode Language Extension (GameMaker / GML files)?

I'm editing GML files (GameMaker Studio) in VSCode. There's a wonderful plugin, GML Support which adds autocomplete for inbuilt GML functions and instances variables along with a bunch of other cool things. However, VSCode doesn't seem to recognise…
1
vote
2 answers

Realiable UDP - When does the TCP handshake occur?

Trying to develop a reliable UDP protocol for my game (made in GameMaker: Studio) that connects to a Java server. I need to ensure packets arrive and that they arrive in the correct order. I'm trying to model off of the TCP protocol to do this, and…
1
vote
1 answer

MACROS in gamemaker function throwing error

This Code var within_rangex = is_within(x,o_player.x,PLAYER_REACH); throwing the error Got ';' (;) expected ',' I Have No Idea Why, when using magic numbers there is no error thrown. EDIT: The Script In Which PLAYER_REACH Is Defined. // This…
1
vote
2 answers

I need help for gamemaker 2.3

Pls help me A few weeks ago it came out of gamemaker 2.3, practically in the gamemaker language they changed the scripts into functions, but now after converting the files to be able to reopen them, I double-checked all the scripts and etc but…
1
vote
1 answer

Game Maker Studio 2 Array taking wrong values

Hey guys I'm new to Game Maker Studio and new to the language. I'm making a game and have been working on the dialogue system. This chunk of code was designed for characters respond to a set of choices, the dialogue starts by printing out the first…
Jimmy Musser
  • 63
  • 2
  • 8
1
vote
1 answer

Collision Check GMS2

I have written a collision check code and ran it, works perfectly but it is working for just one layer. e.g My code is getting layer id and gets tiles in that layer and giving them a number between 1 and 0. If it is 1 there is a collision, else (0)…
1
vote
1 answer

How to get the room (or screen) coordinates from inside a Gamemaker Studio 2 shader?

I'm mostly new to writing shaders, and this might not be a great place to start, but I'm trying to make a shader to make an object "sparkle." I won't get into the specifics on how it's supposed to look, but to make it I need a value that changes…
TfREZkrn
  • 15
  • 3
1
vote
2 answers

Is it possible to return to a room in the state you left it, rather than being reset in GameMaker Studio 2?

Currently I'm trying to implement a way that the user can quickly switch to a room that displays the instructions/controls. Once they're done reading them, they should be able to return to the room they were previously in in the state that they left…
1
vote
1 answer

The global.game_width not set before reading it

global variable name 'game_width' index (100009) not set before reading it. at gml_Object_objTextbox_Create_0 (line 16) port_x = (global.game_width - box_width - port_width) * 0.5 I created in Game global.game_height and width, but it doesn't…
1
vote
1 answer

How to fix a bug with 'image_xscale' in GameMaker Studio 2?

I'm making a game in GameMaker Studio 2, and I have a problem. When object turns to left or right, he was puching forward. But he has to be in the same position like the first time. I tried to use this code: /// @description vaksciojimas // You…
1
vote
2 answers

Game Maker Studio 2 - room physics and object physics

I want to make a simulation where a ball is thrown with a random force and there is gravity. I used 'create' event and 'motion_set' function. It works when room physics is turned off. When I turn it on, the ball just drops, motion_set doesn't seem…
Dawid
  • 35
  • 5
1
2
3
12 13