Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / 2-player games

Author
Message
ThePict
6
Years of Service
User Offline
Joined: 6th Nov 2017
Location:
Posted: 30th Dec 2017 17:42
I am new to AppGameKit, so apologies in advance...
I have some (many) ideas for two-player simple games, but I need some help/education in how to make them communicate:
1. Two devices connect to each other - using what ever network (wi-fi, LAN or whatever) is available
2. sending data between the devices

I have looked at the Multiplayer/Getting Started/ example where one chooses HOST and the other(s) JOIN but not sure what needs to be done to make it automatic.
I have wondered if; FIRST player on starting the app looks for a HOST, if none is found then this player becomes a HOST, then the second player does the same but this time a HOST will be found. Am I on the right lines here?

Any help or advice will be greatly appreciated.
nonom
6
Years of Service
User Offline
Joined: 12th Nov 2017
Location: Picking mushrooms
Posted: 2nd Jan 2018 00:37 Edited at: 2nd Jan 2018 00:42
Hi! You are in the right way, the first player who joins in the Network is the host, let's say the Client Id 1.



Check the following links
https://www.appgamekit.com/documentation/Reference/Multiplayer/HostNetwork.htm
https://www.appgamekit.com/documentation/Reference/Multiplayer/JoinNetwork.htm
https://www.appgamekit.com/documentation/guides/8_networking.htm

Login to post a reply

Server time is: 2024-04-20 10:06:27
Your offset time is: 2024-04-20 10:06:27