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

ESCExit location to be click location, not the centre of the collision polygon #332

Open
balloonpopper opened this issue Nov 28, 2022 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@balloonpopper
Copy link

Please make sure you talk to the community before creating an issue.

Is your feature request related to a problem? Please describe.
As discussed 28/11/2022
[23:51]Tootle:
I set up an ESCExit as a very large collision shape (rectangle). Based on the navigation polygon, the character could get to the Exit, but not to the centre of the rectangle. If I click on part of the ESC Exit's rectangle, Mark continues to walk to the middle of the rectangle - which fails as it's not within his navigation polygon. So should the character have to reach the centre of the polygon? If not we might want to check that the destination is reachable when activating an ESC Exit and error accordingly.

[18:13]StraToN:This happens when you don't set any ESCLocation as child of ESCExit, right?
[18:14]Tootle: That was my test case
[18:15]StraToN: Yeah... Well then, I guess it's "normal", even though it's quite cumbersome.
[18:16]Tootle: Is it possible to have it go where you clicked within the navigation polygon?
18:19]StraToN: Hm, let me think out loud...
You're clicking on the ESCExit, right?
[18:19]StraToN: Currently I suppose it's treated as a click on ESCItem
[18:20]Tootle: Yes, clicking on the exits collision polygon
[18:20]StraToN: I suppose we could easily consider that:

  • if that ESCItem is an ESCExit and it doesn't have a child ESCLocation, we make the player go to the inputted click position and run the :exit event on arrival
    [18:21]StraToN: But that would go with no control of where the input position actually was
    [18:22]StraToN: So gamedev has to ensure that any click on any position doesn't make player walk to a weird position
    [18:22]StraToN: Anyway that should be doable, yes definitely
    [18:23]StraToN: We could add this for 4.1

Describe the solution you'd like
As above

Describe alternatives you've considered
N/A

Additional context
Add any other context or screenshots about the feature request here.

@balloonpopper balloonpopper added the enhancement New feature or request label Nov 28, 2022
@balloonpopper balloonpopper added this to the 4.1.0 milestone Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant