Is there any way to make player objects not collide with each other, but can instead go through each other, but cannot go through walls, enemies, etc? Maybe @JR01 ?
Maybe turning the colission completly off and use raycasts to detect walls and the floor and stop the player or other npc falling
Not a perfect example, but it works decently
Pretty similar to my garbage explanation
Actually, it’s very different. This example uses an array to map out the placement of every object, then the player reads what objects are on either side to detect if it is colliding
What you explained with the ray casts would also work as an effective method for Layer Collisions. (A problem would happen when things overlap and the Ray hits another object and not the wall)
Awesome! Anyway to make it for side-scrollers?
If the players were affected by gravity and you change a bit of the code to stop velocity instead of just Key Presses it should work
hmm, ok…could be tricky-