This happens because the camera system is currently closely following the Player, and I haven’t implemented that well in this template.
The camera simply moves based on the Player’s deviation and the screen’s center point.
Since in the template I use “player” name to center the map in the update.
It needs an extra step to find the player object.
You can replace it with a player variable.
It’s not a perfect solution; you need to design a better camera system.
Additionally, the size discrepancy of the animation sheet is also causing issues. You can easily notice that if the animation isn’t played.
It will be significantly better. Because the position of the player has changed for each frame of the animation. You need to adjust the canvas of each frame to be the same. This may have occurred because I used TexturePacker to create the image sheet.