GameMaker Connect to TCP server asynchronous

T

TimothyAllen

Guest
Is it possible to connect to a TCP server asynchronously in GMS2?

network_connect freezes the game until it either connects or it fails to connect. I would really like to have some sort of animated "connecting to server" notification so that the player knows what is happening and doesnt think that the game is crashing just because it is taking a while to connect (or fail to connect most likely) to the server.

For most of my game I plan on using UDP but I plan on using a master TCP server to start the communication between UDP host / clients. (master server will also have a game list that the clients choose from). I know its generally not good to have both TCP and UDP going, but there will be very little communication with the master server (virtually none during game play).

If its not possible in GMS2 to do this (with GML) then I'll likely change the master server to UDP as well and manage the connections myself.

Thanks
 
T

TimothyAllen

Guest
Manual >> network_set_config()

Should tell you everything you need to know.
Thank, not sure how I missed that. I even remember reading that. I guess it didnt click that it was what i was looking for.
 
Top