Gamemaker Studio Tutorial: Basic Platformer (with slopes!)

Make sure to put the video quality at 720p!

UPDATE (1/14/2020): So while experimenting with the code today, I noticed an oversight. If the player is airborn, colliding with a wall, and there’s no collision at their current y coordinate minus their slope height, they will snap to those coordinates. If you have a really small slope height this shouldn’t be too much of a problem (since you would have to be near the very top of the wall for this to occur) but otherwise, it might be kinda noticeable. To fix this, just add a “and (grounded)” check at 09:10. The project files below have been updated with this fix.

Gamemaker 8.1 project files 👍:

Gamemaker Studio 1.x project files 🌟:

^—For GM Studio 2 users all you have to do is import the the above project and it should convert it for use on GM Studio 2.

NOTE: When compressing the files into zip files for some weird reason it makes a duplicate folder inside the original before compressing it. When you unzip it, you can open the first folder and drag out the second somewhere else if you want

Music Used (in order of appearance):
1. Gunbound – Battle Theme #1

2. Mario Party 3 – Deep Blooper Sea

3. Dawn of the Breakers – Map 1

4. Maplestory – L Forest

5. Maplestory – Ereve: Raindrop Flower

6. Sonic 3 – Endless Mines
Questions? Suggestions? Leave them in the comment section and I’ll try to give my best response!

Support me on Patreon!


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

Article Categories:


  • Btw guys, I didn't show it off in the video but my method works for any custom shaped slope, so don't think you only have to use it for 45 degree angle ones and etc. You can go in the sprite editor and draw any slope shape, then set precise for its collision mask and the player will be able to move on it perfectly, provided that your slope height is big enough (just don't make them too steep). Tell me if you find any bugs!

    MaxL0s July 5, 2020 10:31 pm Reply
  • Hi, I found a little bug with you project. I can't jump when I'm climbing the slope. How can I fix that?

    goamalo July 5, 2020 10:31 pm Reply
  • Where in hell you have been all those years! You saved my game.

    goamalo July 5, 2020 10:31 pm Reply
  • Do you know if this works in GameMaker Studio 2?

    Operationgamer17 July 5, 2020 10:31 pm Reply
  • I've been looking for a tutorial like this for 16 years. my eternal thanks

    Diogo Hadouken July 5, 2020 10:31 pm Reply
  • Really useful video for making the game work w/slopes, much better than my own attempt. Good job!

    A425 July 5, 2020 10:31 pm Reply
  • Thanks, it's almost like the code i'm using just have to add that "grounded" variable. Also what song is that? :'>

    Elvis Ente July 5, 2020 10:31 pm Reply
    jk, but still, this is a pretty good tutorial.
    I would like to know the name of the first and last song, those two were pretty captivating. Thanks!

    ZapitoS3 July 5, 2020 10:31 pm Reply
  • Such a helpful tutorial, it'll help me program my new Indie game!

    KaratGaming July 5, 2020 10:31 pm Reply

Leave a Comment

Your email address will not be published. Required fields are marked *