Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Im trying to make Dungeoncrawler-esque movement, but im having trouble making it collide with walls, i'm a bit lost..

(+2)

Assuming this is in 2d: Create a kinematic body, add a collision shape node as a child of kinematic body. Set the shape to be what you want it to be. Move kinematic body in code using move_and_slide(speed). To create collisions with walls create a static body and add the wall collisions as its children. Make sure the player kinematic body and the wall static body are on the same layers and masks. Make sure both layer and mask are enabled on each(important). (Layer+Layer do not collide, Mask + Mask do not collide. Layer+Mask collide.)

hope this helps!