Hi team,
I made shoting game to SmartFox2X and html.
But I have two problems.
1. WebSocket is always in the normal state of the network delay (delay 40ms), leading to my bullets are stuck together, what is a good way to solve the packet delay or packet slow?
2. How do I get the client to send a object to the client not through the server?
noted thanks
WebSocket transmission on the issue
Re: WebSocket transmission on the issue
Hi,
latency is a normal part of networked applications. There's not much you can do about, beside trying to "hide it" with different techniques.
If you're not familiar with this I'd recommend taking a look at the realtime examples we provide for different platforms such as Unity, Flash etc... there're a lot of interesting concepts to learn that are universally valid and can be applied to HTML or any client type.
http://docs2x.smartfoxserver.com/ExamplesUnity/fps
http://docs2x.smartfoxserver.com/Exampl ... space-race
http://docs2x.smartfoxserver.com/Exampl ... pacewar-p1
You can't.
The only way to do that would be via a peer-to-peer connection, but browsers don't support it.
cheers
latency is a normal part of networked applications. There's not much you can do about, beside trying to "hide it" with different techniques.
If you're not familiar with this I'd recommend taking a look at the realtime examples we provide for different platforms such as Unity, Flash etc... there're a lot of interesting concepts to learn that are universally valid and can be applied to HTML or any client type.
http://docs2x.smartfoxserver.com/ExamplesUnity/fps
http://docs2x.smartfoxserver.com/Exampl ... space-race
http://docs2x.smartfoxserver.com/Exampl ... pacewar-p1
2. How do I get the client to send a object to the client not through the server?
You can't.
The only way to do that would be via a peer-to-peer connection, but browsers don't support it.
cheers
Re: WebSocket transmission on the issue
I'm trying to see
thanks for your advice.
thanks for your advice.
Who is online
Users browsing this forum: No registered users and 133 guests