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

get ID of your player #86

Open
hchiam opened this issue Aug 9, 2024 · 1 comment
Open

get ID of your player #86

hchiam opened this issue Aug 9, 2024 · 1 comment

Comments

@hchiam
Copy link

hchiam commented Aug 9, 2024

I know there's player.getID(), but that's only after accessing all players with something like for (const [player, input] of playerInputs.entries()) {

How might I access the ID of my player? player.isLocal seems to sometimes not work depending on who's the host

@hchiam
Copy link
Author

hchiam commented Aug 9, 2024

in other words, how do i know whether i'm player 1 or player 2? i'm trying to connect to events of buttons that are outside of the canvas #85

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