itch.io is community of indie game creators and players

Devlogs

#12 | 2023-07-10 | Fixing Collision Bug #2

Factory of the Damned
A downloadable game for Windows

Hello!

Fixing this new collision bug was pretty straightforward, but took some time because I had to mess with my player controller(s).


I started by creating a new layer titled "Floor" with a tag that shares the name.

Floor is separate from Ground because my player controller(s) only checked if the player was touching ground before changing variables. When the top tiles were also Ground, it caused my player to stick to them like this:

Next I wrote a new function called "GroundCheck". It checks to see if "isGrounded" equals true or false and runs code depending on the result of the boolean.

This fixes the sticking issue, but the player is still janky when moving up a slope.

And yet another bug to fix... That's GameDev for you.

Fixing bugs is annoying and tiresome, but ultimately necessary.


Thanks for reading and stay tuned for the next log!

Download Factory of the Damned
Leave a comment