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

Glitch with the "move towards" thing e.g. Octopus King #38

Open
avengah opened this issue Sep 13, 2022 · 0 comments
Open

Glitch with the "move towards" thing e.g. Octopus King #38

avengah opened this issue Sep 13, 2022 · 0 comments

Comments

@avengah
Copy link

avengah commented Sep 13, 2022

The game makes a mistake when deciding if the entity is close enough to the player (or whatever it's targetting). The x and y distance seem to cancel each other out. It seems to calculate the distance from the top left corner of the Octopus King, so if you are on the ground, it will stop a few tiles to the right of you, but if you are high in the air, it will stop several tiles to the left or right of you, depending on where it is. It will only move up close to you from the right side if you are close to the top of its sprite. This means the Octopus King will never attack if you're not moving and don't jump, as it won't get close enough.

There is a similar problem with the nougat monster: if it's angry and approaches you, it may stop before touching you if you're wearing the Boots of Introspection, because it's trying to move 3 tiles but can only move 1 or 2. Simply use the black hole spell at the start of the fight and it may stop in front of you, not close enough for it to hit you. From there, you can kill it with magic with no chance of being hit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant