I've been trying to solve this little bug in my code for a while now, but I can't seem to figure it out yet. When running my program the player entity correctly falls to the ground due to the gravitational pull, but if he walks off of the ground then he doesn't fall.
As far as I can tell, the two collision checking if-else statements or something regarding them is probably messing up. The game seems to think that the player is colliding with something and therefore won't allow it to fall anymore.
If someone cares to check out the code and see if you can figure out a possible solution, thanks.
Link to the two classes I believe are causing/are related to this issue:https://github.com/MackProgramming/SideScroller/tree/master/src/entity
Here is the compiled game:https://mega.co.nz/#