Hello. I'm working on multiplayer game and I have a problem with the change of instance variables if you are connected as a peer. The point is that I would like to at the moment of collision Player object with another sprites change instance variables.
If I am logged in as a host problem does not occur and at the moment of colision the player with sprite value "health" is reduced by 1 but if you log on as a peer when a collision does not change.
Below I include the function I used:
Link to my game: http://serwer1694557.home.pl/