fgamez1020
fgamez10207h ago

Multy Player Turn System

How to build and implement a turn system to let the user know when its their turn in the game?
4 Replies
kapa.ai
kapa.ai7h ago
Hi @fgamez1020. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Hmm, I don't know enough to give you a confident answer yet. However, I can tell you that in NormalVR, you can use the RealtimeComponent to synchronize data in your application. This could potentially be used to manage a turn system by keeping track of whose turn it is in a shared state. For example, you could create a custom RealtimeComponent subclass that stores the current player's turn in a RealtimeModel. When a player finishes their turn, they could update this model, which would then be synchronized across all clients. You can find more information on how to create a custom RealtimeComponent subclass in the NormalVR documentation (https://normcore.io/documentation/realtime/synchronizing-custom-data#creating-a-realtimecomponent-subclass). Please note that this is a general approach and the specific implementation may vary depending on the details of your game. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai7h ago
<@1053407831916822528> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
Mechabit
Mechabit6h ago
Synchronizing Custom Data | Normcore Documenation
In this guide, I’m going to walk you through how to synchronize custom data in your Unity application using custom realtime components.
Mechabit
Mechabit6h ago
you want to store an int that says who's turn it is when that player is done they increment the int all players register for the change event when the int changes to your clientID you know it's your turn