Hi devdudes! ^_ ^
My game's character has a sliding movement to pass under narrow walls, similar to the classic MegaMan. However, depending on the starting point of the slide, this movement may stop while the character is still going through the wall.
What would be the best routine to make the character continue sliding if the move ends when he is under the wall?
I'm currently using a sprite in the pass-through scenario only via slide, which keeps the boolean variable of the slide active and the direction of platform behavior (left or right) to make the character pass automatically.
Thanks for the attention and colaboration.