#12 | 2023-07-10 | Fixing Collision Bug #2
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!
Get Factory of the Damned
Factory of the Damned
2D Side-Scrolling Platformer!
Status | In development |
Author | Ice Diamond Studio |
Genre | Platformer |
Tags | 2D, Puzzle-Platformer |
More posts
- #27 | 2024-01-20 | Project EndJan 21, 2024
- #26 | 2023-09-24 | Beta v1Sep 24, 2023
- #25 | 2023-09-16 | New TrapsSep 17, 2023
- #24 | 2023-09-03 | Scaling Down DevelopmentSep 04, 2023
- #23 | 2023-08-25 | Development RoadmapAug 25, 2023
- #22 | 2023-08-24 | Alpha v2 ReleaseAug 24, 2023
- #21 | 2023-08-16 | Major Code OverhaulAug 16, 2023
- #20 | 2023-08-13 | PSAAug 14, 2023
- #19 | 2023-08-01 | Major Code OverhaulAug 01, 2023
- #18 | 2023-07-31 | Major Code OverhaulAug 01, 2023
Leave a comment
Log in with itch.io to leave a comment.