- Home /
Question by
JustinC04 · Dec 30, 2021 at 11:27 AM ·
photonmultiplayer-networking
How to set action upon collision between players?,How to set action upon player collision?
Hello,
I am new to Unity and Photon and I recently created a simple online 2-player platforming game. So far, I have successfully set up the process of creating and joining rooms and movement within the game.
The game is like Tag, where the tagger chases the other person and when they collide, the other person becomes the tagger and their positions reset.
I want the tag indicator to be a yellow square on the player, but I am unsure of how to create this. I also don't know how to detect collision, switch the indicator to the other player, and reset the players' positions.
Any suggestions on how to do this?
Thanks
Comment