|Topic was automatically imported from the old Question2Answer platform.
Hi, I’m having an issue on a pacman clone I’m building. Basically when a ghost is inside the home area, it will go up until it collides with a wall, then it will start chasing the player. I’m using a tilemap for the level design / collisions / navigation, and kinematic bodies for the player and the ghosts.
Everything works fine most of the time, the ghosts chase the player without issue, but there is a bug that’s driving me crazy. It only happens if the player is in the right side of the screen when a ghost leaves home, and it makes the ghost jitter up and down for some reason. If the player moves to the left side the ghost starts chasing him. If the player doesn’t move, the navigation path defaults to going left, and the ghost chases the player just fine.
There are no differences between the left or the right side of the level, and I’ve been trying to debug this for hours to no avail. I’ve uploaded a project where you can reproduce this if you want: download
Also here’s a gif that kinda shows what I mean, but you can’t see the ghost jittering because well, it’s a gif:
If you have any ideas of what might be wrong, please let me know.