GameMaker Workshop

Download Report

Transcript GameMaker Workshop

GameMaker Workshop
Geoff Cameron
Sarah Scialli
What this workshop will teach you
GameMaker
 No Programming Required
 Create a Maze RPG (courtesy of the
GameMaker Tutorials)
 If you’d rather not follow our design,
improvise!

Here’s what it will look like:
Basics:
How Game Maker Works
Sprites
 Objects
 Rooms
 Icons

Step 1.
Create the Room
Add Room
 Snap 32
 Change background color

Create Person

Create sprite spr_person
Use person.gif
 Click “full image” (old version)


Create object obj_person


Set object to have an image of spr_person
Put object in room

Right click inserts in room, left click deletes
object
It will look like:
Make your Person Move

Add event to obj_person:
Left: start moving in left direction, speed 4
(can try other speeds)
 Right
 Up
 Down
 No key – start moving in no direction

Make a Goal

Create sprite spr_goal
Goal.bmp
 Set full image

Create object obj_goal
 Put in room

Now it looks like:
Make the Goal Work

Add event in obj_goal
Upon Collision with person
 Display message (in Main2) “You win!
 End game (in Main2)

Create Walls

Create sprite spr_wall



Make object obj_wall


Make not transparent
Make full image
Make it solid
Add event to obj_person


If person collides with obj_wall, start moving in no
direction
Select no direction, speed 0
Polish

Go back to obj_person
Add “Snap to” for each event so he doesn’t
get caught on corners
 Change to 32

Create your Maze
Put many walls in the room
 Put goal in “chamber”

Create Diamonds

Create sprite spr_diamond
Use diamond.gif
 Full image

Create object obj_diamond
 Create event in obj_diamond

Upon Collision with obj_person
 Set score to 5, relative (We’ll explain)
 Destroy instance (main 1) (looks like a recycle
bin)

Put Diamonds in room
Create a door

Create sprite spr_door
Door.gif
 Full image


Create object obj_door

Make solid
Put in room
 Create collision event in obj_person with
obj_door


Stop moving
Put the door in the room
Make the door open
Have door disappear when jewels are
gone
 Create step event in obj_door

(in control) looks like a dot with a 1,2,3
 obj_diamond
0
 equal to


Destroy instance (recycle bin in main 1)
Make a Monster

Create sprite spr_monster
Use monster1.gif
 Full image


Under obj_person, add collision with
monster,
display message “you died” (main2)
 restart game (main2)

Add Monster to room
Make Monster Move

In obj_monster add event “Create”

Start moving in a direction- straight up
He walks off map
 Add event, collide with wall


reverse vertical direction (looks like a u-turn
sign in move)
Add a Second Monster


It will move horizontally
Create new object, obj_monster2


Add event in obj_person



using same sprite
collision with second monster
(use control to select multiple) to copy paste into
monster_2 collide
In obj_monster2


collision with walls
reverse direction
Put Two Monsters in Room
It’s done!
Now you have a working game!
 Can do File: Create Executable
 Now you can make it better!
 Other things we didn’t have time for:

Sound Effects
 Music
