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

Checkpoint gates can close if the player is on the wrong side #43

Open
Jon-Cavaliere opened this issue Feb 9, 2022 · 1 comment
Open
Labels
type: bug Something isn't working

Comments

@Jon-Cavaliere
Copy link
Contributor

image

Little bit of a nit-picky issue, but if the player enters a checkpoint gate and then backs out, the on_end_contact callback executes and closes the gate, preventing the player from completing the track.
Perhaps adding some data to the checkpoint entity that stores the proper path direction and checking if player coordinates are on the other side before closing would solve this bug?

@Jon-Cavaliere Jon-Cavaliere added the type: bug Something isn't working label Feb 9, 2022
@jaythomas
Copy link
Member

Sounds like it's the player's fault if they come out on the wrong side of the checkpoint. They should probably restart the level anyways if they're doing that badly. Being able to specify an "exit side" would be a nice polish on its behavior though so we should leave this open (despite it not being a big deal in my opinion).

This actually gave me an idea for a level though where you have a grid-based map with checkpoints at the intersections, checkpoints you can pass through from either direction to close. The goal is to pass through all the checkpoints in a logical order/direction to where you don't create dead-ends for yourself. I don't know how to explain it in words so here's a visual that might convey the concept better: https://www.transum.org/Maths/Activity/without/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants