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)



(21 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!
Did he work woth GM8?
scuse, with game maker 8 PRO?
it’s realy fun but also boaring
thx that was soooooooooo helpful
this is helpfull with me this is amazing video
Thx For Video But Im Sory Im Newbie So i no can make this video :’(
it doesn’t work when i try to put the gravity higher
[...] 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 ) GameMaker Platform Game (Part 1) | GameMaker Video Tutorial [...]
won’t work
i did it the same as video and this is the result – fall good
wont jump in mid air good
hits block good
can’t move left or right on block or jump bad (however it is trying as my spr changes from player_Right to player_left and vise versa.
if you can help thanx