Hi all,
I released my game “Cornhole Duels” few days ago, that is a turn-based game, with the possibility to play only on local computer in different modes:
- versus cpu
- versus player
- training
The game is simple, when global variable Turn is “Player 1” then you can use arrows up and down to aim and then press spacebar to shoot. The same controls when turn variable becomes “Player 2”.
Both players have same simple controls.
Now I’m trying to implement online multiplayer and I was able (following tutorials) to arrive at the point where peer joins the host’s room.
I can’t understand how then to make everything working with syncs.
I created Host, Peer and Common group.
Do I have to put my “game core functions” under Host group?
Do have I to create single instance variables of objects in the game layout and then update these and send messages to peer with updated ones?
Do I just need to sync objects?
Have tried with messages but just achieved how to see same texts for host and peer.
If anybody could help me I appreciate.
Just let me know and I’ll share with you the capx of the multiplayer version, if needed to better help me out.
Thanks and regards