game maker workshopslides

25
GameMaker Workshop GameMaker Workshop Geoff Cameron Geoff Cameron Sarah Scialli Sarah Scialli

Upload: andrew-duckworth

Post on 09-Dec-2014

1.653 views

Category:

Technology


1 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Game Maker Workshopslides

GameMaker WorkshopGameMaker Workshop

Geoff CameronGeoff Cameron

Sarah ScialliSarah Scialli

Page 2: Game Maker Workshopslides

What this workshop will teach youWhat this workshop will teach you

GameMakerGameMakerNo Programming RequiredNo Programming RequiredCreate a Maze RPG (courtesy of the Create a Maze RPG (courtesy of the

GameMaker Tutorials)GameMaker Tutorials) If you’d rather not follow our design, If you’d rather not follow our design,

improvise!improvise!

Page 3: Game Maker Workshopslides

Here’s what it will look like:Here’s what it will look like:

Page 4: Game Maker Workshopslides

Basics:Basics: How Game Maker Works How Game Maker Works

SpritesSpritesObjectsObjectsRoomsRooms IconsIcons

Page 5: Game Maker Workshopslides

Step 1. Step 1. Create the RoomCreate the Room

Add RoomAdd RoomSnap 32Snap 32Change background colorChange background color

Page 6: Game Maker Workshopslides

Create PersonCreate Person

Create sprite spr_personCreate sprite spr_personUse person.gifUse person.gifClick “full image” (old version)Click “full image” (old version)

Create object obj_personCreate object obj_personSet object to have an image of spr_personSet object to have an image of spr_person

Put object in room Put object in room Right click inserts in room, left click deletes Right click inserts in room, left click deletes

objectobject

Page 7: Game Maker Workshopslides

It will look like:It will look like:

Page 8: Game Maker Workshopslides

Make your Person MoveMake your Person Move

Add event to obj_person:Add event to obj_person:Left: start moving in left direction, speed 4 Left: start moving in left direction, speed 4

(can try other speeds)(can try other speeds)RightRightUpUpDownDownNo key – start moving in no directionNo key – start moving in no direction

Page 9: Game Maker Workshopslides

Make a GoalMake a Goal

Create sprite spr_goalCreate sprite spr_goalGoal.bmpGoal.bmpSet full imageSet full image

Create object obj_goalCreate object obj_goalPut in roomPut in room

Page 10: Game Maker Workshopslides

Now it looks like:Now it looks like:

Page 11: Game Maker Workshopslides

Make the Goal WorkMake the Goal Work

Add event in obj_goalAdd event in obj_goalUpon Collision with personUpon Collision with personDisplay message (in Main2) “You win!Display message (in Main2) “You win!End game (in Main2)End game (in Main2)

Page 12: Game Maker Workshopslides

Create WallsCreate Walls

Create sprite spr_wallCreate sprite spr_wall Make not transparentMake not transparent Make full imageMake full image

Make object obj_wallMake object obj_wall Make it solidMake it solid

Add event to obj_personAdd event to obj_person If person collides with obj_wall, start moving in no If person collides with obj_wall, start moving in no

directiondirection Select no direction, speed 0Select no direction, speed 0

Page 13: Game Maker Workshopslides

PolishPolish

Go back to obj_personGo back to obj_personAdd “Snap to” for each event so he doesn’t Add “Snap to” for each event so he doesn’t

get caught on cornersget caught on cornersChange to 32Change to 32

Page 14: Game Maker Workshopslides

Create your MazeCreate your Maze

Put many walls in the roomPut many walls in the roomPut goal in “chamber”Put goal in “chamber”

Page 15: Game Maker Workshopslides

Create DiamondsCreate Diamonds

Create sprite spr_diamondCreate sprite spr_diamondUse diamond.gifUse diamond.gifFull imageFull image

Create object obj_diamondCreate object obj_diamondCreate event in obj_diamondCreate event in obj_diamond

Upon Collision with obj_personUpon Collision with obj_personSet score to 5, relative (We’ll explain)Set score to 5, relative (We’ll explain)Destroy instance (main 1) (looks like a recycle Destroy instance (main 1) (looks like a recycle

bin)bin)

Page 16: Game Maker Workshopslides

Put Diamonds in roomPut Diamonds in room

Page 17: Game Maker Workshopslides

Create a doorCreate a door

Create sprite spr_doorCreate sprite spr_doorDoor.gifDoor.gif Full imageFull image

Create object obj_doorCreate object obj_door Make solidMake solid

Put in roomPut in roomCreate collision event in obj_person with Create collision event in obj_person with

obj_doorobj_doorStop movingStop moving

Page 18: Game Maker Workshopslides

Put the door in the roomPut the door in the room

Page 19: Game Maker Workshopslides

Make the door openMake the door open

Have door disappear when jewels are Have door disappear when jewels are gonegone

Create step event in obj_doorCreate step event in obj_door (in control) looks like a dot with a 1,2,3(in control) looks like a dot with a 1,2,3obj_diamondobj_diamond00equal toequal to

Destroy instance (recycle bin in main 1)Destroy instance (recycle bin in main 1)

Page 20: Game Maker Workshopslides

Make a MonsterMake a Monster

Create sprite spr_monsterCreate sprite spr_monsterUse monster1.gifUse monster1.gifFull imageFull image

Under obj_person, add collision with Under obj_person, add collision with monster,monster,display message “you died” (main2)display message “you died” (main2) restart game (main2)restart game (main2)

Page 21: Game Maker Workshopslides

Add Monster to roomAdd Monster to room

Page 22: Game Maker Workshopslides

Make Monster MoveMake Monster Move

In obj_monster add event “Create” In obj_monster add event “Create” Start moving in a direction- straight upStart moving in a direction- straight up

He walks off mapHe walks off mapAdd event, collide with wall Add event, collide with wall

reverse vertical direction (looks like a u-turn reverse vertical direction (looks like a u-turn sign in move)sign in move)

Page 23: Game Maker Workshopslides

Add a Second MonsterAdd a Second Monster

It will move horizontallyIt will move horizontally Create new object, obj_monster2Create new object, obj_monster2

using same spriteusing same sprite Add event in obj_personAdd event in obj_person

collision with second monstercollision with second monster (use control to select multiple) to copy paste into (use control to select multiple) to copy paste into

monster_2 collidemonster_2 collide In obj_monster2In obj_monster2

collision with wallscollision with walls reverse directionreverse direction

Page 24: Game Maker Workshopslides

Put Two Monsters in RoomPut Two Monsters in Room

Page 25: Game Maker Workshopslides

It’s done!It’s done!

Now you have a working game!Now you have a working game!Can do File: Create ExecutableCan do File: Create ExecutableNow you can make it better!Now you can make it better!Other things we didn’t have time for:Other things we didn’t have time for:

Sound EffectsSound EffectsMusic Music