First you need to download gamemaker. well the link is http://www.gamemaker.nl
you DONT have to register to do this tutorial. this tutorial is based on platformer
anyways:
#1 Launch Gamemaker.exe
________________________________________________________________________________
I. sprites
#2a now, you need to make a sprite. so right click on a sprite folder, then press "Add Sprite".
#2b then "Edit Sprite". double click on the green space. then draw some character. like a ball, ect. just make sure it fits on character position. call it "char"
#2c then save it. repeat 2a-2c but instead make a sprite that best suits a block. call it "block"
#2d make sure the block sprite ISNT Transparent
________________________________________________________________________________
_
II. Objects "char" setting up
#3a now for the objects. on the object folder, put "Add Object".
#3b then on the left side, below the name of the objects should be a thing called "<No sprite>".
#3c next to it should be an arrow highlighting a bar. press it and put the sprite "char". there should be the character you made there. do NOT make another one for the block until tutorial says.
________________________________________________________________________________
__
III. objects "char" coding
#4a now, here is the hard part. so look CAREFULLY. anyways, the coding part. find the bar called "Add Event". press it. then press "step". 3 types of steps are there. PRESS "step". now go over to the right. press the tab "controll". then there will be a piece a paper folded with NO green arrow. drag that into the Bigger empty space. now in that script.
#4b add this to the codeing area
CODE
if place_free(x,y+1)
{
gravity=0.5
}
else
{
gravity=0
}
if vspeed>8
{
vspeed=8
}
{
gravity=0.5
}
else
{
gravity=0
}
if vspeed>8
{
vspeed=8
}
#4c now "Add Event", "keyboard", press <left>, add code D&D, then code this:
CODE
if place_free(x-6,y)
{
x-=6
}
else
{
move_contact_solid(180,6)
}
{
x-=6
}
else
{
move_contact_solid(180,6)
}
Then "Add Event, "Keyboard", Press <right>, add code D&D, then code this:
CODE
if place_free(x+6,y)
{
x+=6
}
else
{
move_contact_solid(0,6)
}
{
x+=6
}
else
{
move_contact_solid(0,6)
}
Then "Add Even, "Key Press", Press "<up>", add code D&D, then code this:
CODE
if !place_free(x,y+1)
{
vspeed=-12
}.
{
vspeed=-12
}.
name this object "objChar"
___________________________________________________________________________
IV. Block Setup
Sooo Simple. the simplest one in the whole tutorials. anyways
#5a. Repeats step 3a-3c but put it block.
#5b.{new} there will be 2 check boxes. one saying "solid", another saying "visible". check on "solid".
#5c. Name the object "objBlock". and save it
____________________________________________________________________________
V. Finishing touch (rest of the tutorials)
ok. READY for the last things? ok, no more numbers, just direct instructions.
now, go back to ObjChar. "Add event". "Collision", then collide with "objBlock". then add code D&D and type this on the coding area:
CODE
move_contact_solid(direction,12);
vspeed=0
vspeed=0
then your done with the objects completly. go to the room folder, right click, "add room", then use the blocks to go straight in a row. then press F5. save the game of course.
if you go through the walls, then look at 5b VERY closely.
_____________________________________________________________________________
little end info:
thats the end with the tutorials. hope i made everyones life happier of doing platformer tutorials for non-registered people =) have fun with this. any problems PM me... if the mods accept this tutorials

