Push up correction for pickups - [Game Maker Studio 2 | Basics]

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



Duration: 9:29
707 views
43


This basics video tutorial shows you how to create a solution for pickups that land on a wall instance. Because there are different random speed values you normally get a clustering of y values where a collision is taking place. This can have issues that the pickup is too stuck in unreachable places and well, it looks cleaner if the pickups are once on the ground are lined up neately with the same height.

The idea is quite simple. You have a collision which is canceling the speed and gravity values (which were set upon spawning) and we do an additional collision check to line up all pickups vertically with one y position above the instance walls bounding box.


Note: This first approach only works on horizontal wall collisions. To have this also work with vertical walls, you need to setup a step event with 3 collisions which are shown in the video.


▶ Gamemaker Studio: https://www.yoyogames.com/get

▶ Trial limitations: https://help.yoyogames.com/hc/en-us/articles/230407528-GameMaker-Studio-2-Trial-Limitations

🎮 My free game Clunky souls:
https://1up-indie2.itch.io/clunky-souls
💓 My assets:
Get some assets at itch.io https://1up-indie2.itch.io/

👑 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)




Other Videos By 1up Indie


2021-03-16The Chromatic Shield - Amiga throwback sidescroller [Made in GameMaker]
2021-03-13Easy hovering/floating - [Game Maker Studio 2 | Basics]
2021-03-11[ not save for work ] 0, 1, 2, 4, 8, 16, 32, 64 bit(s) to unlimited bits
2021-03-09Character creation tool/generator V6 - Space marine pack! Make your own doom guy.
2021-03-08Hotline Miami Remake in GameMaker Studio #23 - Ai: idle, alert
2021-03-04Overlord Q&A session with Opera and YoYo games (GameMaker Studio 2.3++)
2021-02-28Video gaming industry 2020 - 2021 Insights + Predictions ]
2021-02-26What is a bitmap? Retro video game colors [Video game basics | Vfx]
2021-02-23Character creation tool/generator V5 - Witches & wizards pack! Make your own gandalf.
2021-02-22Ice sparkle magic [GameMaker Studio 2 | Vfx]
2021-02-17Push up correction for pickups - [Game Maker Studio 2 | Basics]
2021-02-15Character creation tool/generator V4 - Ninja pack is out!
2021-02-15Megaman Maker or Megaman engines? [made in GameMaker]
2021-02-13Rejoice! Our new masters have spoken, OperaMaker Studio 2 Roadmap 2021
2021-02-12Domion - Trinity Requiem [game made in gamemaker]
2021-02-10Shadow trail [GameMaker Studio 2 | Vfx]
2021-02-07Trail/burst particles, visual eye candy [GameMaker Studio 2 | Vfx]
2021-02-05Character creation tool/generator V3 - Soldier pack is out!
2021-02-04Hotline Miami Remake in GameMaker Studio #22 - Camera tilt/rotate
2021-02-03Leaf particles [Game Maker Studio 2 | Advanced]
2021-01-29How to become an indie game developer [Chill-stream with 1up Indie] (no first 20min muted)



Tags:
gamemaker unstuck push out
gamemaker studio 2 unstuck
gamemaker studio 2 pickup push out
gamemaker studio 2 tutorial
gamemaker studio 2 random spawn
gamemaker studio 2 spawn object