GameMaker Studio 2: Complete Platformer Tutorial (Part 1: Basics)

▶ Source code:

Aimed at total beginners. Set up movement, gravity and collisions in fewer than 40 lines of code. The start of a complete series that will cover a wide range of topics for beginners and intermediate developers alike.

New parts to this series released every other Friday.

▶ Support my work:

My old content was getting a bit old. So bringing it all forwards for GameMaker Studio 2, newer methods, and my new and hopefully improved editing skills! Sorry for those of you whom this video touches on old ground but stick with it, while I’m targeting beginners initially this course is going to ramp up quickly!


Xem thêm bài viết khác:

Animated CV Resume – Kai Creative
Asphalt 9 Stunts Montage #13
Crash Bandicoot 1 (PS1) – Meet the Save System (and 0% password) (also read desc.) (480p)
  • YY

    Author Reply

    Im so enthusitaic when i make a game but as soon as i start to develop and code it i start to lose interset and begin to steal and mimic what others do when making games because i get jealous and im a impatient person so i often skip beginners and intermediate level to go to the pro level of coding

  • so i have a problem where my player glitches through the collisions when i press left and right key too fast, any idea what i can do?

  • I’m so proud of my self I’m 12 years old and made a shooter game by myself I swear without a video tutorial I just came to make sure I have no mistakes 😁😁

  • Can someone help, I cant seem to find how to get the Resource bar on the right side of the screen back up.

  • this series shall help me make my game

  • Play button just shows room screen no sign of sprites

  • I tried to make an alternate jump where you hold the jump button for a big jump and tap it for a small one though I wasn't sure how to activate both instructions to work.

  • im in 2020 and it doesn't let me code will you ever do a remake of this video

  • I can't run the game help

  • this is already way too confusing for me. is this really for beginners?

  • Is It possible to follow this tutorial with GM 1.499999?

  • THE GameMaker is in C# language 🤔

  • it won't let me type any code in when I select to create it wants me to select one of many boxes to the right

  • Hey Shuan – I've been using this code for my movement, but I'm now looking into some stuff for platforms you can jump-through, and the code from this is colliding with the code from it, resulting in my vsp being set to 0 when I touch the jump-through platform but then immediately being reset afterwards. Do you know how one might implement jump-through platforming with this movement code?

  • i have a question =

    if i got 2 block? what i do.

  • What computer Language did you use? It looks like C#

  • does this work on old gamemaker?

  • I'm falling through the floor!!!!!! Please help

  • Please, for the love of fucking god, tell me how to make… MULTIPLE FUCKING COLLISIONS. You dumbshit.

  • I didn't quite understand why when using place_meeting, y+1 refered to anything below the sprite if the sprite origin was at the middle center, but when reading the documentation I learned that place_meeting uses the bounding boxes of the sprite (if they do not have precise collision) and not the sprite origin. In case somebody else wonders

  • I have an error in which my character when I press the space bar he is not jumping. Pls help

  • I know this is late but at 29:30 I collide with the ground and can't move

  • terraria background


  • Ok guys, if you had a problem with collisions, check if there is "!" before place_meeting. After adding exclamation point, my character started to work properly.

  • _q_q__q_q_

    Author Reply

    Why my charakter cant go left or right? 🙁

  • JohnJohn

    Author Reply

    vsp = vsp + grv ; is making error

  • 7:03 For anyone who got worried when you clicked, "create" but no space to code appeared, don't worry. Just go to the Events Tab, right click Create to open a drop-down menu, and select, "Convert to GML." Or it'll say something similar to that. Then boom, you'll have the same screen this guy does.
    10:18 Also, it's at this point when it clicked, "Oh, I see why people like dark theme. My eyes aren't bleeding right now." First time I've used dark theme in a game editing tool.
    16:40 Oh I get it, and that is very clever Mr. Spalding~.
    Finally, I want to say thanks a ton man! You explained everything very plainly and simply. Looking forward to the rest of your tutorials!

  • The object is not jumping and the gravity is working way too slowly

  • in my this is giving an error … when I press to the right the character goes to the left, and when I press to the right, it goes to the left

  • Why is my owall not red it always turns blue and there seems to be no red option? Is there any way to change it?

  • why does it have an error when i type the minus sign with the key_right – key_left

  • What is the fucntion of sdfsdfs

  • I have a problem, when my player falls, he stay crashed and i cant move him, its like if he were stayed stuck.

  • how to create a yoyo account

  • Best tutorial of there, thx mate

  • I have a slight issue. Maybe it's because I have the latest version of GMS but… my player Sprite can collide with the top of my wall Sprite, however, if I run into a wall side on, the player goes inside it and disables jump until i am back out. Does anybody know what's going on there?

    I am pretty sure I have matched the exact code in this video too.

    Thanks a lot

  • Note: You can use x += hsp instead of x = x+hsp, it does the same thing, but looks cleaner. This is read as "Increment the value of 'x' by the value of 'hsp'." You can do this with *, /, %, and – as well

  • fj kvfj kv

    Author Reply

    great tutorial, thanks

  • my character won't move. Any idea of what might be? (I still use gamemaker 1.4 btw)

  • hi my name is dominic and i want to code to

  • run program keeps failing with no compile errors – I just copied this code

  • My teacher taught based off your tutorial in my class.

  • Id like to learn how to make a mega man game

  • Your biggest weakness is also your biggest strength:
    You tend to explain everything you're doing in depth, I'm pretty sure you spent 3+ minutes explaining with statements. You seem to give people an understanding that no other tutorial has. But this often makes your videos way too long and is why you have 9 videos all surpassing 30 minutes.

  • helpful.

  • it did help out thank you