Upload
andrew-duckworth
View
1.653
Download
1
Tags:
Embed Size (px)
DESCRIPTION
Citation preview
GameMaker WorkshopGameMaker Workshop
Geoff CameronGeoff Cameron
Sarah ScialliSarah Scialli
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!
Here’s what it will look like:Here’s what it will look like:
Basics:Basics: How Game Maker Works How Game Maker Works
SpritesSpritesObjectsObjectsRoomsRooms IconsIcons
Step 1. Step 1. Create the RoomCreate the Room
Add RoomAdd RoomSnap 32Snap 32Change background colorChange background color
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
It will look like:It will look like:
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
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
Now it looks like:Now it looks like:
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)
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
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
Create your MazeCreate your Maze
Put many walls in the roomPut many walls in the roomPut goal in “chamber”Put goal in “chamber”
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)
Put Diamonds in roomPut Diamonds in room
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
Put the door in the roomPut the door in the room
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)
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)
Add Monster to roomAdd Monster to room
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)
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
Put Two Monsters in RoomPut Two Monsters in Room
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