so i have downloaded the a* pathfinder for unity 2d (because unity doesn’t support path finding in 2d) and i’m trying to add the obstacle layer mask as my ground tilemap. so i set my ground tilemaps obstacle and then i set the obstacle layer mask to obstacle this means that the ai pathfinding will try to navigate around those blocks. but for some reason when i do this my player can no longer jump like basically it shows the jump animation but he doesn’t go up and this happens as soon as i set obstacle layer mask to obstacle.
hope that made sense,
Thank you.
i am having the same problem rn, couldn’t find anyone else that had this problem, have you found a fix for it?
edit: ok i found the fix just play around with the what is ground setting of the player
The answer for all these sorts of runtime data boolean check type problems is always going to be realtime debugging output as you experience the actual problem with your actual setup.
I recommend liberally sprinkling Debug.Log() statements through your code to display information in realtime.
Doing this should help you answer these types of questions:
- is this code even running? which parts are running? how often does it run?
- what are the values of the variables involved? Are they initialized?
Knowing this information will help you reason about the behavior you are seeing.