Im starting a dungeon-crawler type game, it’s not anywhere near done, and im wondering if there’s any way to make a collision type thing where my player cannot move past the walls. ( link is Dungeon thingy map | Desmos )
yeah,
say a is player x
type a→(whatever the wall is){a>=whatever the wall is} and that should work
that would work if i had a single wall, ie i only had one wall at x=6 i would js do if {a>=6:a→a+1}, but that doesnt work for how i have my walls, would i have to redo them? i have the x-axis walls all in one and the y-axis walls all in one.
sorry for being late, but try seeing if the x coordinate and y coordinate are the same as the x and y coords of the wall.
This is called AABB collision. Also, I have another game that uses collision, but more complex, since it involves physics: Physics Platformer | Desmos
you can use multiple restrictions
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.