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),
double-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.
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.
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.
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.
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).
Post Footer automatically generated by Add Post Footer Plugin for wordpress.
