How to make a platformer in Gamemaker (the easy way) #2

Channel:
Subscribers:
11,800
Published on ● Video Link: https://www.youtube.com/watch?v=nwiS2VaT3kg



Duration: 0:00
579 views
42


This platformer video tutorial series teaches you how to create a platformer in simple steps.

The last video established horizontal movement and sprite changes between two states, idle and moving. Sometimes your player character still gets stuck, as a best practise it is a good idea to seperate the sprite_index which is getting swapped and the collision itself. For that we have one collision mask sprite that we assign to avoid that hassle. And last we establish the vertical movement. So we check if we have ground below the player. If no we fall and set the sprite index to a fall image. If we do have ground below us we enable the player to jump by pressing the space bar.
That's it!

Tldr this video:
fixing getting stuck
using tileset for collisions
jumping and falling down


Blog post mentioned:
https://gamemaker.io/de/tutorials/easy-platformer



πŸ‘‘ Support me and get fresh game art and game maker projects every month:
https://www.patreon.com/1upindie

Follow me on:
πŸ“Έ Instangram: https://www.instagram.com/1upindie
🐦 Twitter: https://twitter.com/1upIndie
πŸ’¬ Discord: https://discord.gg/gvr98nb
πŸ“œ Udemy: https://www.udemy.com/course/become-a-video-game-developer-with-gms-23/ (See youtube about page for discount)

0:00 Explaining what we will do
1:26 Grab the id of the tileset and use it for collisions
2:46 Fixing getting stuck, centering the x orgin point
3:50 Fixing getting stuck, using one sprite for all collisions, split collision and sprite index into two things
4:52 Jumping and falling, checking ground below
5:55 Jumping and falling, No ground below? Then fall
6:48 Jumping and falling, Ground below? Enable jumping
8:00 Change the sprite_index if we are in air