

In this article, I am always talking from my experience and probably many of the mentioned engines here may fit better for your games than others, but it doesn’t necessarily have to match my preferences. What's the best engine? nothing in the internet will provide you the right answer: it depends on the kind of game you want to make, your experience as a programmer and what engine you feel more comfortable with. I can say I have touched all of them for a while, not very deep, but deep enough to realize which one was the best fit for me and the kind of games I want to do: 2D, sprite-based, grid-based movement (like a classic RPG). That’s a process that has taken me almost 4 years of basic experience with engines like Melon JS, Unity, LÖVE, Game Maker Studio and now Godot. If you want to start game development it’s not always easy to decide which engine fits best your needs. Which engine should I choose? Here is my experience with all of them when trying to recreate a familiar retro game that we all know.

I don’t know if this is a bug or it’s the GMS2 intended behavior, but now you know how to fix it with a single, simple command.This is a guide for programmers and for beginners. gravity accepts NorthWest, North, Northeast, West, Center, East, SouthWest, South, SouthEast as parameters.Įxecute that command and… done! Now I’ll import the images in the sprite again, overwriting the previous abomination. I also want to keep the sprite centered and expand the canvas all around it (the -gravity parameter). I want the -background to be transparent. I got that information when I first imported the images in GMS2. Remember it? That is the largest width and height of my images (the final size of the sprite). The 12×12 dimension is the one that GameMaker assigned to the sprite. To do this I open the command prompt. Then I type the command mogrify -background transparent -extent 12x12 -gravity center *.png Nice job, GameMaker! If you type cmd in the address bar, it opens the command prompt in that folder So now a comma is just as big as the number 8. Let’s create a sprite in GMS2 and see what happens then.Īs you can see from the image above, every character has been stretched to fill the entire 12×12 canvas. But I need them to be imported into a single sprite. So let’s say that I need to import all these spritesĪs you can see, all these images have different width and height.

If you don’t have it, go get the windows binary and install it.

To fix this, I use a command like utility called ImageMagick. Specifically, if the images have different sizes (width and height), the sprite size will be equal to that of the largest image, but all the other images will be imported stretched to fill the canvas (effectively ruining the sprite). When you try to import multiple images into a single sprite in GameMaker Studio 2, you could end up with unexpected results.
