Hey, I'm making a Lacewing online multiplayer game. I have a custom character feature that I could have sworn I coded correctly, but for some reason, despite making a Player_ID value, and making a "Player_ID = PeerID" event, which usually selects the specific sprite based on their Player_ID value, it doesn't work, and I'm not sure why.
Here's the problem specifically:
When joining the game with two people, the other person has the correct hat on. (You don't have a hat, because I haven't gotten to scripting that yet, so that's fine.)
However, on another screen, no one has any hats on.
Now, when a third person joins, things get complicated. On one screen, everyone has the same hat on, and on another screen, no one has any hats on, and on a third screen, everyone has another type of hat on.
I don't think I could adequately explain my problem without looking through the scripts first, so here's the .mfa to look at:
Please login to see this link.
If you want to test it for yourself, here's what you do:
First, to run multiple instances of the game, you'll have to Build it into an application, and run the game multiple times at once.
In-game, on the character customization screen, click the hat button to change your hat. As far as I know, it works as intended. Then click Join.
You can change your name, as that may help identify who's supposed to wear which hat. Don't change the server, though.
You should connect and spawn in. You can use arrow keys to move.
From there, repeat the process in another opened game instance, and another.