An easy GameMaker Studio tutorial for beginners (2024)

An easy GameMaker Studio tutorial for beginners (1)

Adam Sinicki / Android Authority

If you want to develop games for Android, Android Studio is not the best choice of tool. While Android Studio is a powerful IDE and comes with many additional tools for development, it is primarily suited to productivity apps and tools and has a steep learning curve. It’s fortunate then that there are many other options available, such as the excellent GameMaker Studio 2. This post will serve as a GameMaker Studio tutorial to get you started, and an overview of the tool.

By the end, you’ll have built your first 2D platform game!

See also:How to make Android games – for complete beginners

What is GameMaker Studio?

Before we begin with the GameMaker Studio tutorial, what exactlyisa GameMaker Studio?

Like Unity and Unreal, GameMaker Studio, is a game engine that incorporates a powerful IDE (integrated development environment) for easy development. Where GameMaker differs, however, is in its relative simplicity and target audience. This is a drag-and-drop tool with relatively less cording involved than many of its rivals. This makes GameMaker ideal not only for beginners but also artists and designers that want to build games without learning to code.

what exactlyisa GameMaker Studio?

What exactly is a GameMaker Studio?

That said, for those that do want to add some custom logic, there is a “GameMaker Language” that affords slightly more flexibility.

An easy GameMaker Studio tutorial for beginners (2)

Adam Sinicki / Android Authority

With this ease of use does come a slightly more limited scope. GameMaker Studio 2 is a 2D game engine; so if you have dreams of building the next Doom, then you’ll need to look elsewhere. But don’t be mistaken: this is still a pro-level IDE that powers some highly successful titles. These include the linkes of Minit, Blazing Chrome, Hyper Light Drifter, and my personal favorite: Katana Zero.

Another caveat of GameMaker Studio is that it is not free, whereas the more powerful Unity and Unreal Engine are. Pricing is very reasonable, however, with the Creator License costing $39. This permits users to develop and publish games for Windows and MacOS. Console licenses are much more expensive however, costing $799 each, or $1,500 for all three. The licenses last for 12 months and are non-renewing, and there are other options such as a Developer license and Education license. There is also a 30-day trial so you can see if you get along with the workflow before you take the plunge.

This makes GameMaker ideal not only for beginners, but also artists and designers that want to build games without learning to code.

At the time of writing the engine is in version 2.3.1.542. However, it is most commonly known as “GameMaker Studio 2.”

Now, on with the GameMaker Studio tutorial!

How to use GameMaker Studio 2

To get started with GameMaker Studio 2, first create a new project. Next choose the “Drag and Drop” option, which we will be using for this GameMaker Studio tutorial.

Quick tip: if ever you’re looking for information or help online, make sure you search for “GameMaker Studio DND.” This short hand will ensure you get information relating to the drag and drop version, rather than GameMaker Language (GML).

An easy GameMaker Studio tutorial for beginners (3)

Adam Sinicki / Android Authority

You’ll now be greeted with a Workspace on the left and an asset browser on the right. The asset browser lets you see all the elements in your project folder.

Every game needs sprites, so take yours and drop them into the Sprites folder. If you don’t have any sprites of your own, you should be able to download some from the web. I’m using sprites from an old greenscreen style game I made. This little chap is called “Bee Boo.”

An easy GameMaker Studio tutorial for beginners (4)

Adam Sinicki / Android Authority

When you drop the sprite in, you should see it automatically open up in a separate window for closer inspection. Notice that it automatically has a collision box; the small grey outline surrounding the image. This defines the physical size of your sprite and facilitates interactions with the environment. If you need to change this, you can select the “Collision Mask” drop-down menu on the left, and then select “Manual” under mode. You’ll now be able to drag and resize the box as needed. Make sure that the original sprite is 32×32 pixels, or change the dimensions by clicking “edit sprite.” The collision box should generally be the same size and shape as the sprite.

When you build a game for real, you’ll probably want to use multiple sprites to create animations. For now, we can just use a static character that glides around the screen. If you do want to make an idle animation, however, you can simply drag another sprite next to the first one in the timeline and then set the FPS in the top left.

An easy GameMaker Studio tutorial for beginners (5)

Adam Sinicki / Android Authority

Creating a tile set

I’ve also dropped in a “tile set.” This is a selection of sprites that will be used to draw levels. In this case, I’m using green semi-transparent squares. The image itself is a large translucent PNG that has a 32×32 pixel square in it. That square is in the top left but is shunted 32 pixels to the right. This will make sense in a moment!

An easy GameMaker Studio tutorial for beginners (6)

Adam Sinicki / Android Authority

Create something similar of your own and then drop it into the Sprites folder.

Now right click on the “Tile Sets” folder and select “Create Tile Set.” When this opens up, you’ll need to select the sprite you just added. Now set the tile width and height to “32.”

What this does is to automatically divide the image into blocks of 32×32. The top left square is always the “empty” image. The following squares will take care of the tile as it appears from different angles. So if you have grass on top of your platforms and dirt on the sides, you’re covered! The smart thing is that there is an “Auto Tiling” option that will automatically make that judgement call for you.

For now though, I’m just using two tiles: an empty tile, and a plane square.

Creating a room

Now for the fun part of this GameMaker Studio tutorial: building a level… or “room.” Rooms are screens that can represent levels of a game or chunks of a level. This is the equivalent of a “scene” in Unity.

Click on the Rooms folder in your Asset Browser, and you’ll see that you already have an asset called “Room 1” in here. Open this up and you’ll see a grid and a Room Editor.

See also:How to create a simple 2D platformer in Unity – Party One

The first thing to do is to add a background. Simply click on the Background layer in the Room Editor window, then select a sprite underneath. This needs to come from your Sprites folder, so make sure to drop the image in there first. I’m using a pretty starfield.

Next, we need to add our tiles. You can do this by clicking on the tile layer icon in the Room Editor window – this looks like an isometric grid.

An easy GameMaker Studio tutorial for beginners (7)

Adam Sinicki / Android Authority

Now you’ll be able to choose a tile set to use. We’re going to use the one we just made. You can then simply draw onto your grid to create your level layout! By using the tile layer, you’ll also be creating less work for the GPU.

GameMaker Studio tutorial: building objects

An easy GameMaker Studio tutorial for beginners (8)

Adam Sinicki / Android Authority

Once the level has been drawn, we need a character to explore it. To create the player, right click no the “Objects” folder in the Assets Browser and create a new object. Call this object “Player” and select the sprite you made earlier.

You’ll notice you have some more options now. Make sure you’ve unticked “uses physics” as this will make things more complicated.

We’re going to create another object, too. which will be a completely empty object with physics once again disabled. You can click the “New Sprite” button to create this empty image, then define the size of the empty image and its collision box. This should be set to 32×32.

Adding objects to the rom

It’s time to see our game in action!

Switch back to the Room tab and then select the “Instances” layer in the Room Editor window. An “instance” refers to an instance of an object that can interact with other objects in the Room. That means the player character you created is actually a “prefab” or a class that can have multiple identical copies called instances. This isn’t something you’ll need to worry about for a long time but it’s useful context!

Once you’re in the Instances layer, you can simply drag and drop your character into the scene wherever you want it. This will be your player’s starting position.

An easy GameMaker Studio tutorial for beginners (9)

Adam Sinicki / Android Authority

You’re also going to drag and drop your invisible ground layer a few times and resize it to perfectly match wherever you drew your tiles. You can resize these objects by simply grabbing an edge and pulling. This is necessary because the tiles themselves are in the Tile layer and don’t have any impact on our game objects. Of course, you could just use objects with sprites to draw your levels, but this is a more efficient method in terms of the GPU and speed of creating levels.

Adding gravity to the player character

If you click on the Play button at the top of the screen, you can test out what you’ve built. Right now, nothing happens; we’ve got a bit further to go before this GameMaker Studio tutorial is through!

To fix this, we need to add “events” to our player. So, double click on the Player in the Asset Browser and then choose Events > Add Event.

An event is simply an action or change that occurs within the room. The first event we’re going to add is called a “Step” event. Step is essentially one lap of the gameloop. Each time the game refreshes, this event is triggered. This then, is where we want our gravity to go!

As we’re using Drag and Drop, we can add our game logic simply by choosing commands from a toolbox. Here’s what our logic is going to look like:

An easy GameMaker Studio tutorial for beginners (10)

Adam Sinicki / Android Authority

So, if there is an object at position Y + 2 (two beneath the player) then set the gravity to 0 and set the vertical speed to 0. Else (otherwise), set the gravity to 0.5.

Make sure to tick “relative” so that these positions are relative to the player object.

Build this flow chart yourself by dragging the elements from the right and placing them underneath or next-to the commands they follow on from logically.

Adding gravity force will automatically cause your player to fall. We turn the gravity off when we hit another object but we also need to set the vertical speed back to 0 to get rid of any lingering momentum. Otherwise the G-forces would prevent our player from being able to move!

Adding player controls

Now we need to add events to let our character move. We want to be able to walk left and right and jump up in the air.

Luckily, we have an event called “Key Down” that also lets us pick the key we want to listen for. This will trigger whenever the key is down, which also means the player will be able to simply hold left or right (rather than needing to tap the button).

The logic that goes here is pretty self-explanatory. We check to see if the pixels next to our player are clear. If they are, the player moves one step in that direction:

An easy GameMaker Studio tutorial for beginners (11)

Adam Sinicki / Android Authority

Do the same thing for the other direction.

Jump is slightly different. Here, we’re going to move the player slightly in the air so there is no collision, then apply vertical force and set the direction to “up.” This will give us a nice, natural jump movement. Again, we want to check that the player is on the ground before any of this happens, though:

An easy GameMaker Studio tutorial for beginners (12)

Adam Sinicki / Android Authority

Now hit play and you should find that you can actually control the player, explore the level, and fall into pits. Not bad for about 10 minutes of set-up!

Closing comments

An easy GameMaker Studio tutorial for beginners (13)

Adam Sinicki / Android Authority

And, with that, this GameMaker Studio tutorial is over!

While this isn’t a “full game,” it’s enough to get a good feel for how GameMaker Studio works, and whether it clicks for you. This is a powerful tool if you want to get a 2D game running quickly, and that can only be a good thing for gaming on the Android platform. Let us know what you think of GameMaker Studio in the comments below, and if you would like to see a tutorial for GameMaker Language in future. Happy developing!

For more developer tutorials and news from Android Authority, sign up below!

You might like

News

An easy GameMaker Studio tutorial for beginners (2024)

FAQs

Is GameMaker Studio easy to learn? ›

Is GameMaker good for beginners? Yes! GameMaker Studio is relatively easy to learn compared to other game engiens like Unity or Unreal, as you can make a game without very much code or scripting. However, the games made in GameMaker are geneallly not as complex as with other game engines.

Is GameMaker easier to learn than Unity? ›

For a beginner, small 2D games are easier to build in GameMaker Studio than in Unity, yes. Complex, visually-heavy games are better handled with Unity — but it isn't easy at all. (But it's fun.)

Is it hard to make a game in GameMaker? ›

The difficulty will depend on your requirements. If you just want players to see each other and don't really interact: pretty simple. If you want the to interact: somewhat simple. If you want them to interact and see the same thing happen: moderately difficult.

Is GameMaker a good start? ›

So, GameMaker is quite "newbie" friendly, although PERSONALLY I would start straight away using code and leave the D&D actions. They aren't as complete and you'll have to change from D&D to code later as you get better... that said, don't discard them straight away and play around with them to see what suits you!

What is the easiest GameMaker? ›

The Best Game Engine for Beginners in 2024
  1. Unity: Developed by Unity Technologies, Unity is one of the world's most popular game engines and has been used to create some of the biggest titles in gaming. ...
  2. Unreal Engine: Another popular game engine is Unreal. ...
  3. GameMaker: ...
  4. CryEngine: ...
  5. Phaser: ...
  6. Godot:
Jan 11, 2023

Is GameMaker 100% free? ›

Can I download GameMaker for free? Yes - all versions of GameMaker are completely free to download. You'll only need to upgrade to a paid GameMaker package if you'd like to export your games to certain platforms. For more information, check out our Pricing page and our comprehensive GameMaker exports article.

Is Unity overkill for 2D games? ›

Casual and mobile games often thrive in 2D. The lighter resource requirements and the ease of integrating touch controls make Unity 2D a perfect match for games in this rapidly growing market.

Is GameMaker still worth it? ›

Overall: I definitely recommend this software if you are looking to start somewhere in the indie game industry and are familiar with a little coding or still learning. A lot of professional programmers on our team love it and we have produced a couple of very well-received titles using it.

What programming language should I learn for GameMaker? ›

Javascript and C++ are completely separate languages from GML, with different purposes. GML did take some influence from them, and others, and has some unique stuff. So basically, if you are referring to scripting for the Gamemaker engine, GML is the language you learn and use.

Do game makers make money? ›

Game Developers earn money by distributing their games to other websites or game portals as it has become an enormous component for a lot of websites that are used to drive traffic and retain them with different strategies.

Can you sell games made with GameMaker? ›

A one-off charge of $99.99 for the commercial licence (GameMaker Professional) is required to sell your games. This is the only charge. After you've purchased your commercial licence all monies made are yours to keep.

How much money does a GameMaker make? ›

Glassdoor's November 2023 salary data shows that video game designers make, on average, $117,000 in the US. This figure combines estimated base salary and additional pay such as cash bonuses, commission, tips, and profit sharing [3].

Do you need to know coding for GameMaker? ›

Does GameMaker require coding? No, not for basic games thanks to its DnD system. However, as your game complexity increases, using GML becomes almost inevitable. It is highly recommended to learn GML to harness the full potential of GameMaker.

Is Unreal Engine better than GameMaker? ›

When assessing the two solutions, reviewers found GameMaker easier to use, set up, and administer. However, reviewers preferred doing business with Unreal Engine overall. Andrew M. Game Maker is deceptively simple to start using, and it has powerful features under the hood.

Is GameMaker Studio difficult? ›

Overall: GameMaker: Studio is a powerful and feature-rich game development engine that is easy to learn and use. With its drag-and-drop interface, it's easy to quickly get up and running.

Does GameMaker Studio require coding? ›

Does GameMaker require coding? No, not for basic games thanks to its DnD system. However, as your game complexity increases, using GML becomes almost inevitable. It is highly recommended to learn GML to harness the full potential of GameMaker.

Is GameMaker similar to Python? ›

GameMaker Studio primarily uses its own scripting language called GameMaker Language (GML) for game development. GML is designed specifically for GameMaker and shares some similarities with languages like C and JavaScript, but it is not Python.

What coding language does GameMaker use? ›

What language does GameMaker use? GameMaker uses its very own coding language known as GameMaker Language (creative name, right?). GameMaker Language, or GML for short, comes in two different flavours: GML Code, and GML Visual. GML Code allows you to write your own code and take full control of your creation.

Top Articles
Latest Posts
Article information

Author: Terence Hammes MD

Last Updated:

Views: 6265

Rating: 4.9 / 5 (69 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Terence Hammes MD

Birthday: 1992-04-11

Address: Suite 408 9446 Mercy Mews, West Roxie, CT 04904

Phone: +50312511349175

Job: Product Consulting Liaison

Hobby: Jogging, Motor sports, Nordic skating, Jigsaw puzzles, Bird watching, Nordic skating, Sculpting

Introduction: My name is Terence Hammes MD, I am a inexpensive, energetic, jolly, faithful, cheerful, proud, rich person who loves writing and wants to share my knowledge and understanding with you.