Sunday, March 25, 2007
Postponed
Due to current end of year projects this blog has been postponed untill all projects are done and finished. After that, this project will be resumed and updated.
Thursday, March 15, 2007
Adding An Object
In this post we will learn how to add an object. We will be adding a PAC Man object with some reactions to a Wall object.
To add an object, hover over the tool bar and click on a Blue ball like button that should say add object. You can also add an object by pressing Ctrl + Alt + O.
Name the object descriptive yet again. We chose objPacm for PAC, and objWall for the wall object.
Next it's time to modify the events for the PAC Man object.
Double click on the object for PAC Man and modify the sprite by clicking on the picture next to the sprite box. Add the sprite Pacmstand (the sprite for PAC not moving.).
Next is to add some events for PAC to move in different directions.
With the PAC Man object still open, click Add Event. Add an event for pressing the UP key.
With the up key event opened in the object dialog, add two actions. In the move group (action groups are found on the far right toolbar of the opened sub window), select "start moving in a direction". Tell it to move up at a rate of eight. Then add another action. Change the action group to group "Main 1". In the sprite section of Main 1, there is a button that will change the sprite. Tell it to change to the sprite you made for PAC moving upwards.
Now for the complicated part. Using the same steps add events for pressing the keys for left, right, and down with the same set of actions, moving in a direction at a rate of 8, and changing the sprite to the sprite for PAC moving in that direction.
Once that is done, create a room with the name Roomtest. In that room add the object for PAC with the object dialog.
To add the object to the Room, tell it to make the object added with the left mouse button to be the PAC object. Once that is done tell it to save the room and press teh green arrow on the tool bar to test your objects movements and actions. Once that's done, guess what? You have learnt how to add a sprite, object, room, object in a room, and some basics of this engine. Next time, adding collisions for objects.
To add an object, hover over the tool bar and click on a Blue ball like button that should say add object. You can also add an object by pressing Ctrl + Alt + O.
Name the object descriptive yet again. We chose objPacm for PAC, and objWall for the wall object.
Next it's time to modify the events for the PAC Man object.
Double click on the object for PAC Man and modify the sprite by clicking on the picture next to the sprite box. Add the sprite Pacmstand (the sprite for PAC not moving.).
Next is to add some events for PAC to move in different directions.
With the PAC Man object still open, click Add Event. Add an event for pressing the UP key.
With the up key event opened in the object dialog, add two actions. In the move group (action groups are found on the far right toolbar of the opened sub window), select "start moving in a direction". Tell it to move up at a rate of eight. Then add another action. Change the action group to group "Main 1". In the sprite section of Main 1, there is a button that will change the sprite. Tell it to change to the sprite you made for PAC moving upwards.
Now for the complicated part. Using the same steps add events for pressing the keys for left, right, and down with the same set of actions, moving in a direction at a rate of 8, and changing the sprite to the sprite for PAC moving in that direction.
Once that is done, create a room with the name Roomtest. In that room add the object for PAC with the object dialog.
To add the object to the Room, tell it to make the object added with the left mouse button to be the PAC object. Once that is done tell it to save the room and press teh green arrow on the tool bar to test your objects movements and actions. Once that's done, guess what? You have learnt how to add a sprite, object, room, object in a room, and some basics of this engine. Next time, adding collisions for objects.
Tuesday, March 13, 2007
Adding sprites
To add a sprite, hover your mouse over the toolbar. There should be a red Pac Man symbol. This is the add sprite button. Click add sprite. Then click on Browse to find the sprite in the folder called pac man. Add only hte Pac Man sprites at this time. You will need the Pac Man stand, left, right, up, and down sprites.
Steps needed to take:
Click the add sprites button.
Add Pac Man sprites(included with game maker), there are five, up, down, left, right, and stand.
Name them descriptively. The names I chose were Pacmup, Pacmdown, Pacmxxx where xxx is replaced with the direction pac is moving.
Next add the wall sprite. Name should be self explanitory.
Steps needed to take:
Click the add sprites button.
Add Pac Man sprites(included with game maker), there are five, up, down, left, right, and stand.
Name them descriptively. The names I chose were Pacmup, Pacmdown, Pacmxxx where xxx is replaced with the direction pac is moving.
Next add the wall sprite. Name should be self explanitory.
Sunday, March 11, 2007
Game Type
The first game we will be making is a Pac Man clone.
We decided to do Pac Man because it is easy, fast, simple, and fun, as well as being a great way to get into Game Maker 7.0*. Even better is the fact that it is compatible with Game Maker lite, the free edition of Game Maker 7. The sprites are included with the program and make the game that much easier to make.
Steps ot make Pac Man:
Create sprites for Pac, Wendy, Guile, Joe, and Mike.
Create objects for characters.
Create the walls for use in the Room.
Create commands for the objects as well as collision detection.
Test at every step.
*:Game Maker can be found at http://gamemaker.nl
We decided to do Pac Man because it is easy, fast, simple, and fun, as well as being a great way to get into Game Maker 7.0*. Even better is the fact that it is compatible with Game Maker lite, the free edition of Game Maker 7. The sprites are included with the program and make the game that much easier to make.
Steps ot make Pac Man:
Create sprites for Pac, Wendy, Guile, Joe, and Mike.
Create objects for characters.
Create the walls for use in the Room.
Create commands for the objects as well as collision detection.
Test at every step.
*:Game Maker can be found at http://gamemaker.nl
Gamemaker
So far we're going to be learning about an easy and free 2d game engine to use, called gamemaker. I myself have the registered version, which costs about 20 USD. If not that should be fine. You'll learn the basics of making games with it. When I get past version 7s violation errors, I will make my next post.
Subscribe to:
Posts (Atom)