Topic was automatically imported from the old Question2Answer platform.
Asked By
Afely
I’m trying to recreate a platformer controller from GMS2, but I’m stuck on converting the move_contact_solid() function. If you’re not familiar, it basically moves the object in a direction until it hits a solid object. Here’s the docs for it: Link
Would anyone know how to do this? Any help would be greatly appreciated. Thanks!
Thanks, but that’s not quite what I’m looking for. I need to be able to move the node by setting its position, and then have it snap to a surface when it’s colliding.
edit: Sorry, my mistake, I figured out a way to make it work. Thanks for your help!