Move And Collide with Slopes - Gamemaker Tutorial

preview_player
Показать описание

Gamemaker has just released a new move_and_collide function, which allows you to program simple collisions in a very efficient way. You can have a platformer with slopes with a very small amount of code.

** What will I learn? **
In this overview I show how to implement collisions using this new function, and solve a few issues you might encounter when implementing it yourself.

Chapters
Sprites - 0:56
Objects - 2:02
Create Event - 2:53
Room Design 3:23
Step Event - 9:03

The First Platformer course mentioned in the video will be available shortly, but sign up to my mailing list below to be notified when it's released, and also to receive a special coupon code at launch.

Also I am offering my Tile Based Moving Platform Engine for free, if you have donated at least $20 through Patreon. Contact me if you qualify for this offer.

If you want to learn more GML, check out my Udemy course using the coupon code from my site, which will give almost 90% off.

Follow me on Twitter for more Gamemaker content

Gamemaker is made by Yoyo Games.
Рекомендации по теме
Комментарии
Автор

You're a really great teacher! Some things I like are also showing the visual code and walking through the failuresas well as going over basic stuff again like only using the 1st 3 arguments! It seemed really helpful and can probably help with a rotating platform that was giving me trouble! Thank you!!

grifleep
Автор

Oh my god it works, I felt like killing someone after trying to figure out stairs, failing to do so, and then I read that this feature was introduced, and couldn't understand how it works, and then I found this video. Thank you, you stopped me from some extreme actions )))

DelphineEraklea
Автор

Great job resuming the new function ! First time on your channel, not the last :)

hopcolline
Автор

Thank you for the great tutorial. I also learned so much from your tile based platformer tutorial and though I didn't use it in the end because the lack of slopes, it taught me a lot of things that made me better at using game maker. Now this tutorial gives a really great base to platformers.

goamalo
Автор

you can set the slope sprite to have a "rectangle with rotation" mask which i believe is much faster than precise collision

illdie
Автор

thank you dude I kind of needed this. Keep it up

heroicoder
Автор

you can use the "angle" property of the object to set direction of the player...
example:
if you keep colliding with a slope, my direction is the slope.angle and my speed is hsp..

AronBaddoPacas
Автор

my player is just falling straight through the floor. any help?

clayton_games
Автор

How applicable is this code for top down, 8-directional movement?

TheBuckSleezy
Автор

I'm a beginner, how would i go about tiling this?

icethechampion
Автор

i followed this code but my player movement is jagged, any ideas why?

ChaosMan
Автор

Could you make a tutorial on one-way platforms using this code?

gluehole
Автор

how would you handle slopes differently to normal tiles? want to make a system like jump king where slopes remove the ability to control the player and slide them in a certain direction

kadenfrfx
Автор

Wait, you're never setting the players x position variable. How does the player object even move without setting it?

MichaelSchultzSF
Автор

Question: does the new method work well with entity acceleration/deceleration?

seyuup
Автор

Just wondering, but is there a way to add the drag variable from your previous tutorials onto the hsp?

barcherellithereal
Автор

player's got some jittery movement on the floor, tips on how to fix that?

samthesoupman
Автор

How to make one way platform with this?

adrianmarzec
Автор

because I've made the player go faster, how would i increase the clamp to a higher amount?

mooseyexists
Автор

That video is AMAZING!!!! Quick question, if I change the variable move_spd to 5 or 6 the problem with the slopes start again (the player start jumping them) could you pls mention a solution for that pls!

druinn