I’ve been played with network example today - each player moving a character on screen - and it worked both local and with another friend on another city, very nice!
Maybe it’s a stupid question, but… i would like to know if the created socket connection is UDP based, since it’s better suitable for gaming in general. But don’t know if it’s more complicated to do an UDP socket, in point of view from development.
Anyway, great tool! It take my language as default, Game Develop in portuguese, hah!
Thank you for your response. Well, that UDP problem (unordered and unconfirmed data transmission) is a known problem aswell, but it makes the traffic faster than TCP. I’ve got some knowledge about here: http://gafferongames.com/, a good beginner resource to anyone who wants to implement network on your game.
I was thinking later, in most of the games with direct ip connections, we just need to pass ip from one player (and not from all players like network example), and have wondered if it’s applicable on the same case… Anyone knows and can answer this?
I think you can recreate the same behaviour with Game Develop :
-Initialize reception of data on both computers.
-Use the IP address of the second computer on the first computer to send a data ( Let’s call it “IPAdress” ) which contains the IP address of the first computer to the second computer.
-Check on the second computer if it received a data called “IPAdress”. If such a packet is received, use the IP address contained into the data to add the first computer to the recipient list.
Indeed it should do the trick, but… how can the first computer grab its own External IPAdress? Is there such a command to do that? Or do i have to rely on something like retrieving address from a site like whatismyip.com?
Greetings, and once again, great tool 4ian! Congrats!
Well, I totally forgot that there were no such way to get the IP Address of the computer
I’ve added two expressions to get the IP Address of the computer ( one for the local address, used for LAN, and another one to get the internet address. By the way, this expression rely on whatismyip.com to get the IP Address, there is not any other way to achieve this ).