Hello again.
So I've got a player who is able to move freely in my 2D game. My overall aim is to allow the player to be able to climb the ladders that have been placed randomly around the map.
But in order to do that I first need to solve a problem, I can't figure out how to get my player to recognise he's collided with the ladder but still allow him free movement, ie so the collision in place doesn't stop the player dead in their tracks.
I have three different tilemaps. One for blocks (of various sizes, colours and types), one for misc objects to place around the game and finally, one for ladders.
Originally, there was no collisions for the ladders so I could move past them fine no problem. But I couldn't do anything with them.
So therefore I created a collision for the ladder tileset, so when my players comes into contact with them it'll print ("Ladder") for testing purposes. This works fine. The only problem is now the player collides with the ladders and it blocks his way.
My thinking was maybe there was some code I could use so that for players and objects like barrels, it wouldn't collide, it would allow it to pass. But I'm not sure how to proceed.
I've heard of collision layers that might be able to solve this little problem of mine, I altered the ladder tilemaps layer and mask options but this didn't appear to make a difference. Am I missing something?
Thanks in advance!
EDIT: I've just posted an 'answer' which really is just an update of my situation with the ladder problem at the moment. Feel free to take a look and answer! :)