Enemy falls through one-way platform
valkyrienyanko opened this issue · 7 comments
valkyrienyanko commented
Steps to Reproduce
- Add basic enemy to test level on top of one-way platform
- Play the test level
- Notice how the enemy falls through the platform when you load in the level
- Notice how after the player kills themselves the enemy does not fall through the one-way platform this time (weird)
Issue
Enemy falls through one-way platform
Expected
Enemy should not go through the one-way platform
valkyrienyanko commented
valkyrienyanko commented
Maybe if the custom IsNearGround function is replaced with the built in godot InOnFloor function would fix this? But wasn't the whole reason to get away from IsOnFloor because it likes to not output the correct value when on the floor (constantly switches between true and false when on the floor). If someone does use this function be sure to print / debug it to the console before using it.
valkyrienyanko commented
Changing
public bool IsNearGround() => AreRaycastsColliding(RaycastsGround, "Ground");
to
public bool IsNearGround() => IsOnFloor();
did not fix this
valkyrienyanko commented
valkyrienyanko commented
valkyrienyanko commented
Why doesn't the player move super fast as well? The player velocity is only set to 1200
?
valkyrienyanko commented