How to Move and Collide in GameMaker

preview_player
Показать описание
This tutorial teaches you the easiest way to move in GameMaker, with proper collisions, and it only takes a few minutes to set up.

Рекомендации по теме
Комментарии
Автор

This tutorial works for GameMaker 2023.1 and newer. If you use an older version of GameMaker, check out:

GameMakerEngine
Автор

In case anyone's having problems with moving - try setting both the "Max X Movement" and the "Max Y Movement" in Move and Collide to "-1". This should fix the issue. Shoutout to Mimpy for figuring this out :)

entinoo
Автор

The function to replace 70% of game maker tutorials.

ollie_r
Автор

This is very useful, I've once looked for a tutorial about this, but I'm at a loss, with this function I will be greatly helped

Slowman_CH
Автор

so cool that you show BOTH ways GML and GMV, , just awesome!

Benjamin-vxot
Автор

infinitely more helpful than the gamemaker code videos. Thank you man.

craigpoltenovage
Автор

Finally, after all these years.... the horror...

Scarabola
Автор

I just have a sprite and a white background. sprite is not moving after copying this video. any ideas?

xcalicojack
Автор

i did everything exactly the same, but i cannot make it past the debugger.

keokluck
Автор

In case anyone else made the same mistake as I did, make sure when your player object is not moving, that you didn't overlap their frame into the wall object frame or it will not move at all. I simply dragged it out of the overlapping frame and it could move.

flameintheheart
Автор

Help, when I run into the walls i don't collide but I just slow down while I rub trough them. Does someone know how to fix this?

beter_dan_mors
Автор

Two questions

How to make this work with tileset collision

How to make this work with advanced 8-way movement (the movement in the manual that prevents faster movement via diagonal movement)

fruitsalad
Автор

Das hat mir sehr geholfen.
Genau das was ich gebraucht habe 🙏🙏🤓

ericliebhold
Автор

would be great if this went into more depth on how to pair this with actual platformer movement like jumping and gravity so you're not just floating in space. As is, it seems it would be better for top down style movement. I'm figuring out myself to see how it also works with place_meeting collision and what not. Not really complaining, just stating it would have been nice to see more out of this like your other tutorials. Thanks for getting the gears turning on how to use this function!

heyitsbuddah
Автор

Hey👋how can i apply the collison code to work properly with movement that has acceration and decceration? im moving faster at angle then if i were moving straight.

Jordnscot
Автор

Help! Wall dupelication not working (alt-lmb)!!!!

Alpplayzedits
Автор

best tutorial i have ever seen now i know how to code thx

JustBasicAnimator
Автор

How to stop character animation when he hits the wall?

_FurryOwO_
Автор

Ive tried everything to make the player sprite move but it wont work

xJayosaurusx
Автор

When the movement speed is a decimal point, the screen shakes as the player moves.
How do I solve this part?

dotcat