|
-
Jul 2nd, 2002, 01:43 AM
#1
Thread Starter
New Member
I move !!
creating movements in VB is somehow simple...
Though the question is how to make them move in a networking environment. So far I have not receive any satisfactory feedback.
I used
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyDown Then
Shape1.Top = Shape1.Top + 100
Call mdlPackets.SendChat(KeyCode)
End If
End Sub
but how do I send it????
Hate not me. Hate your weaknesses
-
Jul 2nd, 2002, 02:16 AM
#2
Member
Um
Well I am not sure that I understand your question. But here goes...
I don't understand this line
Call mdlPackets.SendChat(KeyCode)
But if you want to do networking you should probably use the winsock control. You can use it to send/recieve data using the udp or tcp/ip protocols.
MSDN contains a good example for using udp, and it would be a simple task to apply that logic to your situation I think.
Here is the link:
http://msdn.microsoft.com/library/de...ockcontrol.asp
Good luck
-
Jul 2nd, 2002, 02:21 AM
#3
Thread Starter
New Member
wooppsss
Sorry for the extra line of coding.... but somhow winsock will lag my program unless there is some way to kill the lagging time.
How abt directx?
Hate not me. Hate your weaknesses
-
Jul 2nd, 2002, 02:33 AM
#4
Member
OK, I don't know much about DirectX. My impression was that udp was a pretty lightweight messaging system.
I don't know any easier way to incorprate networking into VB unless you use a 3rd party OCX, which will probably be heavier than Winsock.
Good luck. You should probably try one of the other forums on this site for info. on DirectX and gaming.
-
Jul 2nd, 2002, 02:53 AM
#5
Banned
You want to use DX for sending over data?
I once made a DirectX game, but used Winsock for sending over the movements. In my opinion DX just s*cked for that.
Winsock is very lightweighted and easy to use.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|