Skip to main content

Whisker 2 Devlog: why my character kept falling into the ground and how I fixed it

· 2 min read

Today, I fixed one of the bugs that had been plaguing my development ever since I switched the character sprite in my game.

The problem started when I switched the art. The reason why I wanted to switch the art was because I felt like the art didn't fit the style of the game anymore now that it was under my art direction.

However, when I tried to add in the new assets, my character kept on sinking into the ground a little. At first, I thought it was because I had forgotten to adjust the colliders. But, even after adjusting it, it didn't work.

Afterwards, I checked various different things that could have led to my character sinking into the ground: changing the pivot point, looking through the code, increasing the collider.

After a long bit of changing things and seeing it not work, I researched a little into the problem and it turned out that all I had to change was the height in the character controller. One simple problem took me 45 minutes of debugging.

But, I learned that sometimes the best way to fix a bug is to look up the problem. Game development once again proves to me how I have to continue learning and I can't wait to learn more.