Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> [GM]Game Maker: From First-Timer to Master, A multi-part tutorial
HeroOfHyla
post Aug 10 2008, 04:35 PM
Post #1


Twirling towards freedom
Group Icon

Group: +Gold Member
Posts: 2,791
Type: Scripter
RM Skill: Advanced




Game Maker: From First-Timer to Master
A tutorial by HeroOfHyla

(Note: this will be a multi-part tutorial)

So, you've just downloaded Game Maker, and you're eager to start making games. You open up the project, and you're faced with this screen:

(actually, it will say "Lite" not "Pro" unless you bought the Pro version.)
Now you're thinking WTF? Where's the RTP? How do I even start making games? I'm confused! Well, we're gonna get there. First, we need to learn the Game Maker interface.

The Game Maker Interface!
At the top of the screen, you have 2 rows of commands. The top row includes some basic Windows functions as well as some GM-specific ones. The buttons are as follows:

File
Contains standard functions like "Open" and "Save," as well as the ability to make your game into a playable .exe and to switch to Advanced Mode.
Edit
Create, duplicate, and delete resources.
Resources
Make new images, sounds, etc. for your game.
Scripts
Has some helpful scripting shortcuts. We'll look at it further down.
Run
Test your game.
Window
Switch between windows.
Help
An EXTREMELY helpful help file!

On the second row are quick shortcuts to some of the above functions

Now, take a look at the left side of the screen. There are 5 folders and 2 paper icons.

Sprites
Images for your game.
Sounds
Sounds for your game. Includes music and sound effects.
Backgrounds
Images that are layed in the background of your game. Tilesets also go here, if you use them.
Objects
What "runs" the game. Characters, enemies, walls, variable handlers, basically anything that goes on the map.
Rooms
Basically they're "maps" in RPG Maker
Game Information
A write-it-yourself help file that is accessed by pressing F1 in-game
Global Game Settings
Resolution, loading image, constants, etc.

Now you should be familiar with the program's basic layout. Let's move on.

Your first sprite
There are a few ways to add a new sprite. I like to right-click on the Sprites folder and select "Create Sprite." Go ahead and do that, and a new window will open:

We're not going to deal with making a sprite now, so let's import one that came with GM. Click "Load Sprite." If you're not already in the default GM folder (mine's C:\Program Files\Game Maker7), go ahead and get there. Click on "Sprites." Click on "Various." Double click on "Bear.ico." Now, we're back in the sprite editor, with the bear visible:

Now, let's rename the sprite. Sprite0 isn't very descriptive. I like to use camelNotation for my names of stuff, with a prefix for what type of resource it is. I'm naming the sprite "sprBear". Right away, I know it's a sprite from the "spr" and it's a bear from the "Bear".

Before we do anything else, we should save the project. Click File>Save or just press Ctrl+S. Name it whatever you want.

Your first object
Now, we're going to make our first object. Make a new object the same way you made a sprite. I would right click on "Objects" and select "Create Object." This is the screen we see:

See where it says "Sprite: <no sprite>?" Click on the <no sprite> and click on "sprBear" from the list. Now, you have an object with your sprite you created! Easy as pie, right? Well... yes! Of course, it doesn't do anything yet, but we'll deal with that in a second. Before you do anything else, name the object. I called mine "objBear".

Your first room
Make a room now. You should know by now to right click on "Rooms" and click "Create Room." And now we see this screen:

Try clicking in the gray area. What's this? A bear suddenly appeared! Yup, it's that easy to add new objects to the room. Just left click to place, right click to delete. A few more things to know: hold down "Ctrl" to move an existing object. Hold down shift to lay multiple copies of an object. Hold down alt to ignore the grid when laying objects. When deleting, hold shift to delete all objects at a particular point, instead of the highest one. Hold ctrl and right-click an object to bring up a menu.

Go ahead and save again.

Now, test your game! Press F5 or click the green arrow to start up test play. Here's what you'll see after it loads:

Close test-play to get back to the editor. Did you notice that the editor closed when you started test play? I'll show you how to disable that later.
WELL... the game works... but it doesn't do anything yet. Let's change that. Open up the object editor for objBear again by double clicking on the object.

Click on "Add Event." Then click <keyboard>. Then click <up>. What this means is that anything you tell the object to do in the right column will activate whenever the up arrow is currently pressed. Now, take a look at the right side of the object editor. See the top left icon, the one that has 8 red arrows on it? Right click on that. A new window will appear:

Click the up arrow and set the speed to 5. Click "OK."

Now, save your game and test it again. Try pressing "up." The bear starts moving up at a rate of 5 pixels per frame (the game is running at 30 frames per second right now). Notice that the bear doesn't stop moving when you let go of up? This is because the speed is never changed when it reaches 5. We'll deal with that in a later installment, but why don't you go ahead and right click on <up> in the left column. Click "Duplicate." Click <keyboard>. Click <down>.

Now, double click on the "Start moving in a direction" action in the right column. Deselect the up arrow, and select the down arrow. Do the same thing for left and right.

Now your character moves in 4 directions! Test it out! It works, but the character can go off the edge of the screen! Wanna fix that? Go into the object editor for objBear. Click "Add Event." Click "Other." Click "Outside Room."

Now, go over to the right side. See the set of icons under "Jump"? Click the second one over in the second row. It's called "Wrap Screen." A new window will open up. Select "Both" from the drop down menu.

Now, when the character leaves the screen, he comes back out the other side. Movement works now! But, the game doesn't have a point AT ALL. Why don't we add money for the player to collect?

Make a new sprite. Select diamond.ico from the same folder you got bear.ico from. Call the sprite sprDiamond.

Make a new object. Select the sprDiamond sprite for it.

Click "Add Event." Click "Create." Go to the right column and add one of those same move commands the bear has. Select ALL of the arrows for the direction, and set the speed to 10. Basically, this will make it select a random direction and start moving at speed 10. Make it wrap around the screen the same way as the bear.

Click "Add Event." Click "Collision." Click "objBear." On the right side, select the "Score" tab. Right-click the top-left icon, "Set Score." Set the score to "1" and check the "Relative" box. This means that 1 will be added to the score each time the player gets a diamond. Go to the "Main1" tab. Right click the recycle bin icon (destroy instance). Click OK.

Now, test the game. This actually feels like a game now! Notice that the score appears in the top bar?

Why don't we make it possible for the game to actually end? Go back to objBear's editor. Click "Add Event." Click "Create." Go to the right side and click "Main2." Right click the top left icon (Set Alarm). Let's make the game last 30 seconds. Set the timer to 900 (30 seconds x 30 steps / second). Press OK.

Click "Add Event." Click "Alarm." Click "Alarm 0." Go to the "Score" tab. Right click on the second down on the left side (show high score). Play with the settings and hit "OK."

Go to "Main2." Right click on the 3rd down on the right side (end game).

Test the game. It works!!!!!!!


Now you know how to make the simplest of simple games. Next week, we'll go further into Game Maker's power. But first, we have some homework:
Homework
Make improvements on this game. Try to get the following:
Varying gems of different point-value
Enemies that reduce your score when they hit you
Gems that "respawn" instead of disappearing. (Hint: Take a look at "Jump to random" in the "Move" tab.)



The next part of this tutorial should be up some time next week.


__________________________
Asexual - Arizonan - Atheist
I've got a gmail account and a yahoo mail account under this name, if you need to contact me.
You can find me on facebook too. facebook.com/heroofhyla . If you send me a friend request, tell me who you are so I don't get confused.

PlagueRPG SITE IS WORKING! (if you see "test page," hit ctrl+f5)
Latest update: New battle system demo, April 19, 2010

http://heroofhyla.deviantart.com/ ----- http://heroofhyla.livejournal.com/ ----- http://thatonecomic.smackjeeves.com
Go to the top of the page
 
+Quote Post
   
The Tao
post Aug 11 2008, 04:09 AM
Post #2


Level 20
Group Icon

Group: Revolutionary
Posts: 405
Type: None
RM Skill: Undisclosed




This was a really good tutorial, since I never knew where to start before wink.gif

thumbsup.gif Well done.


__________________________
Apparently I am back.
Go to the top of the page
 
+Quote Post
   
OMG_RAWR!
post Aug 11 2008, 05:38 AM
Post #3


Title: Master Map Maker
Group Icon

Group: Revolutionary
Posts: 466
Type: Developer
RM Skill: Advanced




I'm still a beginner with this tongue.gif but I'm farther than that right now I was trying to make a game for my friend using pokemon diamond/pearl graphics and I have run into one problem... I can't figure out how to make rooms where you can enter nd then once you leave you don't go back to the players event spawn.


__________________________

[Show/Hide] Dragon Egg Pouch


[Show/Hide] The Signature? :D


[Show/Hide] My Badges :D


[Show/Hide] Website Crap


Be the Ultimate Ninja! Play Billy Vs. SNAKEMAN today!


[Show/Hide] -Secret Solo Project-
Maps - 50%
NPCs - 30%
Story - 99%
Quests - 10%
Other - 18%

Total Progress = 64%
Go to the top of the page
 
+Quote Post
   
HeroOfHyla
post Aug 11 2008, 02:57 PM
Post #4


Twirling towards freedom
Group Icon

Group: +Gold Member
Posts: 2,791
Type: Scripter
RM Skill: Advanced




Try setting the rooms to "persistent." Then things won't be at their spawn points when the room is created (I think).


__________________________
Asexual - Arizonan - Atheist
I've got a gmail account and a yahoo mail account under this name, if you need to contact me.
You can find me on facebook too. facebook.com/heroofhyla . If you send me a friend request, tell me who you are so I don't get confused.

PlagueRPG SITE IS WORKING! (if you see "test page," hit ctrl+f5)
Latest update: New battle system demo, April 19, 2010

http://heroofhyla.deviantart.com/ ----- http://heroofhyla.livejournal.com/ ----- http://thatonecomic.smackjeeves.com
Go to the top of the page
 
+Quote Post
   
Leper
post Aug 11 2008, 03:15 PM
Post #5


RRR Martyr
Group Icon

Group: Banned
Posts: 315
Type: Event Designer
RM Skill: Advanced




great tutorial, can you show how to do platformers next? Or is that too advanced? I'd love to see a good platforming tutorial.


__________________________
Don't try trolling and then evading a ban like I did!
This message brought to you by management.
Go to the top of the page
 
+Quote Post
   
OMG_RAWR!
post Aug 11 2008, 03:15 PM
Post #6


Title: Master Map Maker
Group Icon

Group: Revolutionary
Posts: 466
Type: Developer
RM Skill: Advanced




QUOTE (HeroOfHyla @ Aug 11 2008, 05:19 PM) *
Try setting the rooms to "persistent." Then things won't be at their spawn points when the room is created (I think).

Oh Im so tarded... haha yeah that worked thanx! smile.gif


__________________________

[Show/Hide] Dragon Egg Pouch


[Show/Hide] The Signature? :D


[Show/Hide] My Badges :D


[Show/Hide] Website Crap


Be the Ultimate Ninja! Play Billy Vs. SNAKEMAN today!


[Show/Hide] -Secret Solo Project-
Maps - 50%
NPCs - 30%
Story - 99%
Quests - 10%
Other - 18%

Total Progress = 64%
Go to the top of the page
 
+Quote Post
   
HeroOfHyla
post Aug 11 2008, 03:58 PM
Post #7


Twirling towards freedom
Group Icon

Group: +Gold Member
Posts: 2,791
Type: Scripter
RM Skill: Advanced




QUOTE
great tutorial, can you show how to do platformers next? Or is that too advanced? I'd love to see a good platforming tutorial.

Ok! We can definitely cover platforms next time! It won't be 'til the weekend though.

Also, post the games you guys made based on this tutorial, everyone! I'd like to see how they turned out.


__________________________
Asexual - Arizonan - Atheist
I've got a gmail account and a yahoo mail account under this name, if you need to contact me.
You can find me on facebook too. facebook.com/heroofhyla . If you send me a friend request, tell me who you are so I don't get confused.

PlagueRPG SITE IS WORKING! (if you see "test page," hit ctrl+f5)
Latest update: New battle system demo, April 19, 2010

http://heroofhyla.deviantart.com/ ----- http://heroofhyla.livejournal.com/ ----- http://thatonecomic.smackjeeves.com
Go to the top of the page
 
+Quote Post
   
Hunter EX
post Aug 11 2008, 11:13 PM
Post #8


Randomee Extravanee
Group Icon

Group: Revolutionary
Posts: 432
Type: Developer
RM Skill: Skilled




I used to be pretty good, still somewhat am (I made a quick, yet crappy and limited, platformer's first level with a single sword attack and a very high jump in an hour or so, complete with background parallax and completely mouse-drawn graphics), but my skill's decreased ever since I started using the RPG Makers. Glad to see this program still gets some deserved attention (despite it's complexity).


__________________________
Map Making: It may take me alittle while, but I can make maps with a decent amount of detail.
Coding: Alright, i'll be honest here; I can't code worth a crap, at least script-wise. At least the stuff in Rm2k/3 could be done using proper common sense. >.>;;
Artist: I can be pretty decent, nothing stellar. I also suck at proper shading.
Opinions: I'm a rather blunt and rude person in this regard - i'll tell you the problems, flatout, then tell you the good points, if any, that I see. =/

Super Smash Bros. Brawl Friend Code: 0645-7909-5917
Xbox Live Gamertag: RikohEX
Go to the top of the page
 
+Quote Post
   
HeroOfHyla
post Aug 17 2008, 09:05 PM
Post #9


Twirling towards freedom
Group Icon

Group: +Gold Member
Posts: 2,791
Type: Scripter
RM Skill: Advanced




Part 2 will be a little late, guys! I realized half way through making the tutorial that I'd made it WAY overly complicated, so I'm starting over. It should be out sometime this week, probably by Wednesday.


__________________________
Asexual - Arizonan - Atheist
I've got a gmail account and a yahoo mail account under this name, if you need to contact me.
You can find me on facebook too. facebook.com/heroofhyla . If you send me a friend request, tell me who you are so I don't get confused.

PlagueRPG SITE IS WORKING! (if you see "test page," hit ctrl+f5)
Latest update: New battle system demo, April 19, 2010

http://heroofhyla.deviantart.com/ ----- http://heroofhyla.livejournal.com/ ----- http://thatonecomic.smackjeeves.com
Go to the top of the page
 
+Quote Post
   
kindomania
post Sep 16 2008, 07:19 PM
Post #10


Level 4
Group Icon

Group: Member
Posts: 45
Type: Artist
RM Skill: Beginner




I liked the tutorial. Now I can finally use game maker for something! Really good job, maybe I'll make a sword you can pick up to fight enemies...


__________________________
Go to the top of the page
 
+Quote Post
   
HeroOfHyla
post Sep 16 2008, 08:36 PM
Post #11


Twirling towards freedom
Group Icon

Group: +Gold Member
Posts: 2,791
Type: Scripter
RM Skill: Advanced




Sorry I haven't done part 2 yet guys. I realized that I didn't really explain GM in this tutorial, I just taught how to do a specific thing. The next one will focus on how exactly everything works.


__________________________
Asexual - Arizonan - Atheist
I've got a gmail account and a yahoo mail account under this name, if you need to contact me.
You can find me on facebook too. facebook.com/heroofhyla . If you send me a friend request, tell me who you are so I don't get confused.

PlagueRPG SITE IS WORKING! (if you see "test page," hit ctrl+f5)
Latest update: New battle system demo, April 19, 2010

http://heroofhyla.deviantart.com/ ----- http://heroofhyla.livejournal.com/ ----- http://thatonecomic.smackjeeves.com
Go to the top of the page
 
+Quote Post
   
Omegas7
post Sep 17 2008, 06:16 PM
Post #12


Awesome. Epic. Fantastic. Did someone call me?
Group Icon

Group: Revolutionary
Posts: 977
Type: Scripter
RM Skill: Advanced




Good job!

Uh huh, more homework? Ouch.


__________________________
Go to the top of the page
 
+Quote Post
   
Favian
post Sep 17 2008, 06:20 PM
Post #13


I'm listening...
Group Icon

Group: Revolutionary
Posts: 165
Type: Musician
RM Skill: Masterful




This is great Hero. This will really help though who have trouble with Game Maker.

Keep up the great work.


__________________________



-----------------------------------------------------------------------------------------------------
Youtube Account: Favian9
-----------------------------------------------------------------------------------------------------

[Show/Hide] This is me and my things!

I Love Neon Genesis Evangelion!!!

[Show/Hide] Beware of Kushi the Imaginary Panda!
See his mighty dance!

And then there were two!

Go to the top of the page
 
+Quote Post
   
master3183
post Oct 3 2008, 04:11 AM
Post #14


Level 4
Group Icon

Group: Member
Posts: 47
Type: None
RM Skill: Beginner




Very nice tut, I just finished all of the "homework"


__________________________
Yeah...about that.
Go to the top of the page
 
+Quote Post
   
HeroOfHyla
post Oct 3 2008, 05:58 AM
Post #15


Twirling towards freedom
Group Icon

Group: +Gold Member
Posts: 2,791
Type: Scripter
RM Skill: Advanced




Really? Post it here then!
I wanna see some progress.


__________________________
Asexual - Arizonan - Atheist
I've got a gmail account and a yahoo mail account under this name, if you need to contact me.
You can find me on facebook too. facebook.com/heroofhyla . If you send me a friend request, tell me who you are so I don't get confused.

PlagueRPG SITE IS WORKING! (if you see "test page," hit ctrl+f5)
Latest update: New battle system demo, April 19, 2010

http://heroofhyla.deviantart.com/ ----- http://heroofhyla.livejournal.com/ ----- http://thatonecomic.smackjeeves.com
Go to the top of the page
 
+Quote Post
   
master3183
post Oct 3 2008, 02:20 PM
Post #16


Level 4
Group Icon

Group: Member
Posts: 47
Type: None
RM Skill: Beginner




Some reason it won't let me upload it...


__________________________
Yeah...about that.
Go to the top of the page
 
+Quote Post
   
HeroOfHyla
post Oct 3 2008, 02:23 PM
Post #17


Twirling towards freedom
Group Icon

Group: +Gold Member
Posts: 2,791
Type: Scripter
RM Skill: Advanced




1. Make it into a zipped folder.
2. Go to a file host like http://www.savefile.com and upload it
3. Post the link here


__________________________
Asexual - Arizonan - Atheist
I've got a gmail account and a yahoo mail account under this name, if you need to contact me.
You can find me on facebook too. facebook.com/heroofhyla . If you send me a friend request, tell me who you are so I don't get confused.

PlagueRPG SITE IS WORKING! (if you see "test page," hit ctrl+f5)
Latest update: New battle system demo, April 19, 2010

http://heroofhyla.deviantart.com/ ----- http://heroofhyla.livejournal.com/ ----- http://thatonecomic.smackjeeves.com
Go to the top of the page
 
+Quote Post
   
master3183
post Oct 3 2008, 02:39 PM
Post #18


Level 4
Group Icon

Group: Member
Posts: 47
Type: None
RM Skill: Beginner




Ok here we go: http://www.savefile.com/files/1819847

Here's what I did,

Lowered regular diamond speed. When they would respawn and go that fast it kind of hurt my eyes.
Added Super Diamond, same diamond just gives 5 points and doesn't respawn.
Made regular diamond respawn, wasn't hard because you say the exact command.
Added an enemy, the enemy is the fire and it respawns + it takes away 3 points when you touch it.'

I think that's about all I did, I'm eager for the next lesson.


__________________________
Yeah...about that.
Go to the top of the page
 
+Quote Post
   
HeroOfHyla
post Oct 3 2008, 02:47 PM
Post #19


Twirling towards freedom
Group Icon

Group: +Gold Member
Posts: 2,791
Type: Scripter
RM Skill: Advanced




Very good! Only now I don't have an excuse to procrastinate anymore...
OK! The next section will be up by Sunday!


__________________________
Asexual - Arizonan - Atheist
I've got a gmail account and a yahoo mail account under this name, if you need to contact me.
You can find me on facebook too. facebook.com/heroofhyla . If you send me a friend request, tell me who you are so I don't get confused.

PlagueRPG SITE IS WORKING! (if you see "test page," hit ctrl+f5)
Latest update: New battle system demo, April 19, 2010

http://heroofhyla.deviantart.com/ ----- http://heroofhyla.livejournal.com/ ----- http://thatonecomic.smackjeeves.com
Go to the top of the page
 
+Quote Post
   
Omegas7
post Oct 3 2008, 05:30 PM
Post #20


Awesome. Epic. Fantastic. Did someone call me?
Group Icon

Group: Revolutionary
Posts: 977
Type: Scripter
RM Skill: Advanced




Cool another lesson of game maker smile.gif.

Sorry Hero, I didn't make the homework ^.^ lol.

Huh? Did you change your look?


__________________________
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 21st May 2013 - 11:35 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker