How can I decompile GameMaker Studio 2 games for further analysis?

How can I decompile GameMaker Studio 2 games for further analysis?

Game development has become increasingly popular, and with the rise of game engines like GameMaker Studio 2 (GMS2), creating games has never been easier. However, there may be situations where you want to decompile a GMS2 game for further analysis or to modify its code directly. In this article, we will explore how to decompile GMS2 games and provide tips on how to make the process more efficient and effective.

Why Decompile GMS2 Games?

There are several reasons why you might want to decompile a GMS2 game:

  1. Debugging: If you’re a developer trying to fix an issue in a GMS2 game, decompiling the code can help you identify the source of the problem more quickly and easily.
  2. Reversing: In some cases, you may want to reverse engineer a GMS2 game to understand how it works or to see if there are any vulnerabilities that could be exploited.
  3. Modding: If you want to modify a GMS2 game, decompiling the code can help you make changes more easily and efficiently.

How to Decompile GMS2 Games

How to Decompile GMS2 Games
There are several ways to decompile GMS2 games, but one of the most popular methods is to use a tool called GMS2Decoder. This tool uses reverse engineering techniques to analyze the GMS2 code and output it in a more readable format.

To use GMS2Decoder, follow these steps:

  1. Download and install GMS2Decoder from its official website (
  2. Navigate to the directory where the GMS2 game file is located.
  3. Open a command prompt and navigate to the directory containing the GMS2 game file.
  4. Type gms2decoder <game_file> (replacing <game_file> with the name of the GMS2 game file) and press enter.
  5. GMS2Decoder will begin analyzing the game code and output it to a new file in a more readable format.

Tips for Decompiling GMS2 Games

Decompiling GMS2 games can be a complex process, but there are several tips that can help make it more efficient and effective:

  1. Understand the game structure: Before you start decompiling a GMS2 game, take some time to understand its structure. This will help you identify the key components of the game and make it easier to analyze the code.
  2. Use GMS2Decoder effectively: GMS2Decoder is a powerful tool, but it can be overwhelming if used incorrectly. Make sure to read the documentation carefully and use the tool’s options wisely to get the best results.
  3. Test your modifications: If you’re modding a GMS2 game, make sure to test your changes thoroughly before releasing them. This will help ensure that your modifications don’t break the game or cause any other issues.


Decompiling GMS2 games can be a valuable tool for developers, reverse engineers, and modders alike. By using tools like GMS2Decoder and following best practices, you can efficiently and effectively analyze and modify GMS2 code to suit your needs. With the right knowledge and tools, the possibilities are endless!


1. Can I decompile any GMS2 game?

While it’s possible to decompile most GMS2 games, some may be more difficult or impossible to decompile due to the complexity of their code or the use of proprietary techniques.

2. Is decompiling GMS2 games illegal?

No, decompiling GMS2 games is not illegal. However, it’s important to respect the intellectual property rights of game developers and only use decompiled code for educational or non-commercial purposes.