In this GameMaker video tutorial you learn how to make a Platform game.
In Part 1 you learn how to make basic movement for the player, jumping, gravity and floor collision. This tutorial also explains how to use masking to correct unwanted collision artifacts.
(Download Video Code .GMK File)
(credit b1naryguy)



(12 votes)
This helped loads!! Thanks
I agree, very helpful. I could never get the hang of programming a platformer before. Now, it’s that much easier.
Wow, thanks!
cool but i need coding in scripts with gml i know some but not all could u make a video about that?
thx a ron
gaming now….
thanks….
Thanks thats rly usefull for my car adventure thingy XD
no entiendo un pito porque no ablo ingles JAJAJA XD XD XD XD XD
just thought you’d like to know, it’s 270 because that is the angle of degrees on to the x axis. so 270 is 270 degrees, pointing down. so 90 degrees would point up.
Amazing job, would never have done this out without your help, thankyou very much
When you finish this your character animation jitters sometimes when landing and it locks sometimes when you jump so where he does the wall collision part instead of putting set vertical speed up top; put it at the bottom and put an else statement before it.
Below is what it should look like..
Wall Collision//
——————————
If vspeed is larger than 0
Move to contact in direction
Change sprite into Player – St
Else
Set the vertical speed
——————————
Hope this helps somebody…
chelle, i had the same problem, but solved it in a different way: in the step event i have only checked the vspeed, so it doesnt go over 12. if the sprite lands on the wall, the gravity and vspeed are nullified and only activated again, when the sprite jumps or moves sideways off the wall.
thx for the tutorial, it helped me a lot. one tipp from me: the direction of the gravity is expressed in degrees.
0° –> right.
90° –> up.
180° –> left.
270° (or -90° too) –> down.
Wow, that helped A LOT! Thanks guys!