This is a pretty long tutorial, and if you just want to see one thing, put these titles into find by hitting ctrl f
Basic Sprite Creation
Comments and if Statements
Creating a Room and Playing the Game
Before we get started, we need to get some stuff out of the way first. After downloading and installing Game Maker 8.1 Lite, open it up and you should see this screen.
It looks pretty bare. Why don't we fix that by changing it from simple mode to advanced mode. Hover over file, and click advanced mode.
Now, it should look like this:
Great! Now we have everything and can get started. First I'll quickly explain what the important things on this screen are.
Sprites - Sprites are images. These images act as a mask to objects. They don't actually do anything, they just act as a visual as to what is happening in the game. They're pretty self explanatory, so I won't go over them into depth yet. I'll save another tutorial just for sprites and sprite animation.
Sounds - Exactly what they sound like. These can be sound effects, or background music. Game Maker does not have a built in sound editor, so you need to bring in your own sounds. The best place for getting your own free sounds is a program called SFXR by Dr. Peter.
Backgrounds - Backgrounds are images placed as backdrops to rooms. The background editor is almost exactly the same as the sprite editor. The only main difference is that backgrounds can be made into tile sets which I will get into another time.
Paths - Paths create custom and definite routes for objects to follow. I will not be covering these, as I don't find them very useful in the games I make.
Scripts - Scripts are a bit more advanced. They use GML (Game Maker Language) to create arguments. I won't be covering these either.
Fonts - Also exactly what they sound like. Fonts are used to modify text in draw events. These don't take much explaining, but I will go over them when I cover drawing.
Time Lines - More specific alarms. These create time lines in steps (game time) for doing scripted events in an object. These are good for creating complicated AI and other such things.
Objects - The most important part of making games. Objects are the brains of your game. They become visible by using sprites. Objects are your player, enemies, ground you step on, items you collect, and everything you can see that isn't in the background. Objects work by setting events to them which perform different actions which is written in DND (Drag n' Drop) or GML. I will not be covering Drag n' Drop programming as it is not a valid way of making complicated games.
Rooms - Where you play the game. This is wear you place your objects, set your backgrounds, and play your game. This is the fun part. I will go over creation code, views, and all of the other useful things that go along with rooms as well.
Now that we've gotten that out of the way, let's create a basic sprite.
Let's create a new sprite by clicking on the red pacman icon at the top or right clicking on the sprite folder and clicking create sprite. You should then be at this screen below. Go ahead and rename the sprite to spr_player. There are a lot of different sprites, objects, background, and rooms that we'll be creating. We need to tell the difference between each type. So we put spr_ in front of our sprites.
Once that's done, hit edit sprite.
Now hit new sprite and change the dimensions to 16 X 16. Then, hit OK and double click your sprite to start drawing.
Now your screen should look like this.
Most of these buttons should be pretty familiar if you've used any kind of paint tool, so I won't go in depth. Click the circle tool, and create a circle. Then, use the paint bucket tool to fill it with color. Once you're done, hit the check mark/OK until you're back to the main screen.
OK, now we're going to make a new object. Click the blue sphere at the top or right clicking on the sprite folder and clicking create object. Then rename your object to obj_player. Similar to sprites, we will add the obj_ at the start of every object to make sure the game knows the difference between player: the sprite and player: the object. To give an object a sprite, click where it says