Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monsters hugging/camping walls (sidewalled bug) #36

Open
TheYellowArchitect opened this issue Aug 11, 2022 · 0 comments
Open

Monsters hugging/camping walls (sidewalled bug) #36

TheYellowArchitect opened this issue Aug 11, 2022 · 0 comments
Labels
bug Something isn't working enemy ai Anything related to the logic and behaviour of monsters high priority Very important, heavily influences the game, must be looked ASAP

Comments

@TheYellowArchitect
Copy link
Owner

TheYellowArchitect commented Aug 11, 2022

Description of this bug

When enemies have a wall collision within -1 or +1 of their collisionPointX, sideWallDetected flag becomes true, and its logic makes enemies not move away from the wall.
The infamous sidewalled bug. Believe it or not, this is a regression bug, one which I was to fix, but development tasks shifted and when I came back, I forgot how I had planned to fix it.
The regression bug was with Satyrs jumping, who had some issues with horizontal movement (physics or AI behaviour?), and I added a sideWallDetected flag and their jump was fixed.
Except... satyrs and all monsters were bugged at sidewalls, but I noticed this weeks later.

Removing this flag and its logic, makes all non-jumping enemies work normally (see hollows at level editor, as a prime example where I override the sideWallDetected flag)

tl;dr: Remove 'sideWallDetected' flag and its logic, and fix the original jumping bug, whatever that was.

@TheYellowArchitect TheYellowArchitect added bug Something isn't working enemy ai Anything related to the logic and behaviour of monsters high priority Very important, heavily influences the game, must be looked ASAP labels Aug 11, 2022
This was referenced Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enemy ai Anything related to the logic and behaviour of monsters high priority Very important, heavily influences the game, must be looked ASAP
Projects
None yet
Development

No branches or pull requests

1 participant