Adalberto Posted August 14, 2017 Share Posted August 14, 2017 510/5000 Good night people!I'm developing a game where the character needs to climb a ladder.The problem I am facing is when he needs to enter a tile that is down the ladder, as I try to illustrate in the image below.When hitting the tile the pesonagem stops to move because the tile needs to be solid so the character can walk on it, but when he is on the stairs he must pass over this tile.Could someone show an example of how I can do this? Since then, thank you very much. Link to comment Share on other sites More sharing options...
Beyb26 Posted August 15, 2017 Share Posted August 15, 2017 What physics system are you using? Link to comment Share on other sites More sharing options...
Adalberto Posted August 15, 2017 Author Share Posted August 15, 2017 Hi. arcade-physics Link to comment Share on other sites More sharing options...
samid737 Posted August 15, 2017 Share Posted August 15, 2017 You can specify which side you want to check collisions with in arcade physics (left right down and up): Adalberto 1 Link to comment Share on other sites More sharing options...
Adalberto Posted August 15, 2017 Author Share Posted August 15, 2017 Good afternoon. I have not been able to implement yet. = / I made a simple example, to show what I have in mind, if someone can help me in this implementation of how to go between the tile when I am on the stairs I will be very grateful. https://jsfiddle.net/hbL7urq6/1/ Ps. Sorry for my English, because I speak very little, I'm from Brazil (pt-br) Link to comment Share on other sites More sharing options...
Recommended Posts