First Tutorial Article
Game Maker is a simple and interesting program. It is used to make many high end games, on communities such as yoyogames, gamemakergames,game maker station, and GameML. It can make 3d games, and 2d games, platformers to first-person shooters. We here at the Game Maker School, are here to teach you the basics of GML (the code language of game maker) This document will teach you how to make a simple 2d shooter, like geometry wars.
Step 1: You want to create a ship like sprite (or image) for game maker to use as your object. Its is the O
Step 2: Now we need a sprite for the enemy, correct? it is the X
Step 3. We need the player sprite, and put it into an object called o_player.
Step 4: Go to the keyboard up and start by constructing a code.
Step 5: Enter the is in the Drag and Drop command, under move- jump to position x -0, y-(negative)-3 (Relative needs to be checked)
Step 6: Go to keyboard left:
Step 7: D&D jump to position x- (negative)-3 y-0 (Relative needs to be checked)
Step 8- keyboard right
Step 9- D&D jump to position x- 3 y- 0 (Relative needs to be checked)
Step 10- Keyboard down
Step 11- D&D jump to position x- 0 y- 3 (Relative needs to be checked)
Step 12- create a bullet sprite. it will be a |
Step 13- Create a bullet object o_bullet.
Step 14- Under global_mouse_left of te o_player insert (D&D under main 1) create object o_bullet at position x-0,y-0 (Relative needs to be checked)' Step 15- Create enemy object o_enemy
Step 16- under enemies step do (under move D&D) move towards point x- o_player.x y- o_player.y
Step 17- Do under collision (selection) with o_player (under main 2 D&D) restart game
Step 18- do under collision with o_bullet instance destroy self (main 1)
Step 19- under the step event of the player do- (under control D&D) if 1 out of 35 (the dice)
Step 20- instance create o_enemy at x - random(room_width); y - random(room_height);
Step 21- under bullet (create) move towards x- mouse_x y- mouse_y
Step 22- under bullet collision with o_enemy destroy self.
There you have it. You can move with the arrow keys shoot towards the mouse with the mouse, and kill and lose to random spawning enemies in 22 steps!