#11 | 2023-07-10 | Fixing Collision Bug #1


Hello!

My previous fix for the bug where the player can't climb a slope was not satisfactory, so I set out to fix it.


The angled tile I shared in DevBlog #9 didn't sit well with me. I hate having to manually place it instead of painting the grid like a tile.

In order to avoid doing this, I did some research. I learnt about the sprite editor and how I can customize the physics shape (collider).

In the sprite editor, in the "Custom Physics Shape" section, I pressed the "Generate" button and it spawned four moveable points on the sprite.

Moving these points allowed me to customize the collider to better fit the shape of a triangle.

Once I figured this out I felt great, one step in the right direction! I repeated this process for all four angled tiles.

With that done, I focused on fixing the bug itself. I went around a couple Discord servers looking for answers and got one that worked!

It was very simple to implement. A simple solution to a simple (yet seemingly complex) problem.

And this fix created another bug...

This bug looks like it'll be easier to fix, though I may have to completely rebuild my levels and add another tilemap + tag.


I'll fix this next bug as best I can before doing anything else. Once all bugs are ironed out, I will create some levels and move onto the second alpha build. So far I've done two alpha builds and will do two beta builds before initial release.

Here is a table to understand my plans for alpha/beta/release builds for this game:


One more thing to mention is that I'm pleased with how my improved graphics turned out. They have more texture and create depth. But if you look closely, when the tiles are next to each other they create a pattern. I wouldn't say that is a bad thing, but I may change it up by creating more tiles with the same colour scheme but slightly different from each other.


Thanks for reading and stay tuned for the next log!

Get Factory of the Damned

Leave a comment

Log in with itch.io to leave a comment.