Club Penguin Planet
Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomeLatest imagesRegisterLog in

 

 Game Maker tutorial: Shooter game

Go down 
AuthorMessage
Hellopayton
Retired Staff
Retired Staff
Hellopayton


Posts : 5616
Registration date : 2008-01-28

Game Maker tutorial: Shooter game Empty
PostSubject: Game Maker tutorial: Shooter game   Game Maker tutorial: Shooter game EmptyAugust 26th 2008, 9:36 pm

To do this lesson, you will need a REGISTERED copy of Game Maker 7. If you don't have it, download it and register your copy.

First off, make a new object. Don't put a sprite on the object as it is not needed. Click "Add Event" and go to "Extra." Find where it says "Other" and underneath it find "Set Cursor." Now, before progressing, simply minimize the Object screen and make a new Sprite. It is reccomended you use this image for a scope, but you can make your own. Name the sprite "spr_Scope." Now, click Save and go back to your Object. Right click "Set Cursor" (what we located before making the sprite) and do this: sprite- "spr_Scope." show- "show." If you have done this, move on to the next step.

Now you have your scope. This will help you locate your enemy. Now, I want you to use any random image and make it a sprite; call it "spr_Enemy." Save it and go to create a new object. You will use the sprite "spr_Enemy" for this object. Name this "obj_Enemy" and save the object. Now, make a new room called "rm_Test." Put your first object (the scope) at 0,0 on the grid (otherwise known as the top left corner). This object should be on 0,0 in EACH AND EVERY room to make the scope work properly. Now, put your "obj_Enemy" anywhere on the grid and click save room.

Open your game. You will see that you have a scope and enemy. If you see the scope you made as the cursor for the game (might be on your original cursor) and the enemy in the room, just exit. Now we make the game playable.

Open up your first object and do "Add Event," "Mouse," "Left Pressed." Once you have done that, go to "main 1" and right click on "Destroy at Instance." A box will open up; hit the "Other Object" option and find "obj_Enemy." Click that and then go to "draw." Find under "Other" the option to "Create Effect." Right click and choose "Other Object," find "obj_Enemy," and make the type Explosion on Small. Right click > Save.

Now, open your game again and click on your "obj_Enemy." If it disappears (might not as this is baely tested) and you see an explosion, then congratulations, you just created a simple shooter game. Expand upon this and make a fully operational game!
Back to top Go down
 
Game Maker tutorial: Shooter game
Back to top 
Page 1 of 1
 Similar topics
-
» Game Maker Tutorial...?
» Game Maker
» Game Maker question
» Looking for Game Maker programmer.
» Yes! [online chat with Game Maker 7]

Permissions in this forum:You cannot reply to topics in this forum
Club Penguin Planet :: Other Discussions :: Programming & Technology-
Jump to: