Love this as a beginning step, especially since I'm not really a coder but want to make a quick and dirty prototype of a game idea I have. Collision is so silky smooth!
What I'd really like to do is add a zaxis for jumping though, like on top of walls, and having depth collision. Any plans to update this with that? Or do you know a quick copy and paste I could do? Like I said... not much of a coder. I THINK I might be able to figure it out, maybe just adding Z whereever you call to check X and Y? It's just going to take me a very long time.
Viewing post in TDMC 2.0 - for GameMaker 2022+ comments
So this is something I've been meaning to write an article about, but think about it like this.
When we say "place_meeting()" we are basically asking "is there a collision here or not." And then we handle the result of that. "There is something there? I can't move." "There isn't? I can move."
So all you really want to do is add another variable to the check: z.
So replace place_meeting() with place_meeting_z: a script of your own making, that accepts a z axis and makes all the necessary checks; including a z-axis. The result is still the same: there is something there, or there isn't. True or False.
This is the difference between "collision checking" and "collision handling". You simply want to change how your collision checking is done, which is the easier part to handle.
I HAVE done this before, so if you run into trouble, I'd recommend asking about it in the help channels of the GM Discord. You are welcome to ping me when you ask, but if I'm unavailable someone just as capable (or more so) should be able to help.
Here's an invite.
https://discord.gg/gamemaker