How to make a platformer in Gamemaker (the easy way) #1
This platformer video tutorial series teaches you how to create a platformer in simple steps.
For that we use the move_and_collide function that does a lot of work by itself. The idea is to go step by step and create first horizontal movement that is being blocked by walls (instances) and then we use a variable to speed up the horizontal movement (which is being used later for walk, run or other speed values). Lastly we flip the scale of the player if he goes left or right aswell change the image/sprite weather the player moves or is idle.
Thats it!
Tldr this video:
horizontal movement
sprite/image setting
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
0:50 Subscribe
1:02 Code source found in YoYo Games blog
1:54 Two types of collisions with walls etc.
2:54 Setting up walls
4:31 Player horizontal/vertical speed variables
4:53 Grabing player keybord input and storing that in move_x
5:55 Use move_and_collide to auto move the player
7:17 Setting max speed values
8:10 Using move_speed as a speed multiplier for all kinds of speeds
8:53 Flipping the player's image/sprite
9:52 Setting idle/walk sprite to the player if he walks or not