Making Video Games

Game Programming tutorial RPG chapter 1 part 1

by Charles on Sep.25, 2009, under Game Programming

Create an original RPG game: Chapter one.

 

You should start here to have a better idea where this is going!

 

After downloading the source code package (right-click – save as to download),source filedouble-click on it and this will start Game Maker.  Run the game to get a feel of what it does.  To do this, simply click on the green icon that is labelled Run the game.

  

rungame 

 

This will start the game in demonstration mode.  You do this from time to time to check if your game is running correctly.

 

When your games aren’t working properly, and you want to see what’s going wrong, you can also run the game in debug mode. 

 

rungamedebug 

 

It does the same as running the game, except you have a small window that gives you info on what is going on as the game runs.  This helps figure out what went wrong. 

 

So for now, you’re just running the game normally, and this is what you see.  Obviously, we’re just starting so it’s rather basic.  We’ll worry about graphics later.

 

advgamepicchapter1 

 

Click on the head or bag and rudimentary panels appear, each containing an inactive “square”.  Run your mouse over the square and it changes color, but that’s all for now.

 

One of these panels is the inventory (bag) and the other is your character panel.

 

advgamepic2chapter1 

 

Click on the black top bar and hold the left mouse button down.  Move the mouse around and you see the panel moves accordingly. 

 

Click on the head or bag button again and the corresponding  panel disappears.

 

There you have it, the early stages of interactive inventory management.

 

You might have noticed that below the world view area there are five squares, similar to the ones in the inventory and character panels.  These make up the control bar.

 

Soon you’ll be able to find items in the room that will automatically appear in your inventory (given there is still space there), click and drag these items to the character panel to equip them, do the same towards the control bar to be able to use them by clicking on it there.

 

But for now, let’s look at how we’ve gotten these results so far (Please go back to Game Programming and select chapter 1 part 2 to continue).

 

Back to Game Programming 

Related Articles:

Post Footer automatically generated by Add Post Footer Plugin for wordpress.

:, ,

2 Comments for this entry

  • Jared

    Hey i’m just trying to go through your Game Programming Tutorial, but the link for the “source code package” on part one isn’t working. is there anywhere else i could get that?

  • Charles

    Hi Dekker,

    You can also find it on http://www.2-0.biz (look for the game programming section).

    I haven’t been around on MVG for a while and the server is bogged down so I can’t fix it just now.

    Have fun with your game project!
    Charles

Creative Lab

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...

    Archives

    All entries, chronologically...