Welcome to Dream.In.Code
Become a VB Expert!

Join 137,233 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,734 people online right now. Registration is fast and FREE... Join Now!




using your wirless network to run a 2 player game

 
Reply to this topicStart new topic

using your wirless network to run a 2 player game, could i have a file that i save in a secial folder on my network that

orangeslide8
5 Mar, 2007 - 01:24 PM
Post #1

D.I.C Head
Group Icon

Joined: 29 Dec, 2006
Posts: 190



Thanked: 1 times
Dream Kudos: 25
My Contributions
ok so what i want to do is any time something changes on one computer it has a file (i don't know what type) saved on my network and every say second the 2 computers check if something's different. what i was thinking is have a text file that says like picturebox1.left = 250 then i would write
CODE

if textfile1.text = "picturebox1.left = 250" then picturebox1.left = 250

could someone help me i need to know how to save textfiles and then read them ( would i have a bunch of different textfiles or just one) and is there a better file type to use say data and how would i use that
thnx
john
User is offlineProfile CardPM
+Quote Post

KeyWiz
RE: Using Your Wirless Network To Run A 2 Player Game
7 Mar, 2007 - 11:04 AM
Post #2

D.I.C Regular
Group Icon

Joined: 26 Oct, 2006
Posts: 428


Dream Kudos: 125
My Contributions
Instead of passing so much information over the net, and slowing things down as they get bigger - more complex, create a CODED list of images. Then instead of sending "Whatever the item is" you send a value that equals that image.

If SentValue = 564 then ThisValue = 564
Lookup ThisValue

or better yet simply

ThisValue = SentValue
Lookup ThisValue

or even better still -

If you create a shared database, then both computers can simply lookup the CURRENT value on the database.
then there is no communications to the other computer(s), just a shared database on one of the computers, or on a server.

If you don't understand all of this, use the Absolute Beginners Guide to Programming that is available in VB 2005 express, it covers a lot of things quite well.


User is offlineProfile CardPM
+Quote Post

siopao
RE: Using Your Wirless Network To Run A 2 Player Game
20 Mar, 2007 - 01:02 AM
Post #3

New D.I.C Head
*

Joined: 20 Mar, 2007
Posts: 2


My Contributions
QUOTE(KeyWiz @ 7 Mar, 2007 - 12:04 PM) *

Instead of passing so much information over the net, and slowing things down as they get bigger - more complex, create a CODED list of images. Then instead of sending "Whatever the item is" you send a value that equals that image.

If SentValue = 564 then ThisValue = 564
Lookup ThisValue

or better yet simply

ThisValue = SentValue
Lookup ThisValue

or even better still -

If you create a shared database, then both computers can simply lookup the CURRENT value on the database.
then there is no communications to the other computer(s), just a shared database on one of the computers, or on a server.

If you don't understand all of this, use the Absolute Beginners Guide to Programming that is available in VB 2005 express, it covers a lot of things quite well.



QUOTE(siopao @ 20 Mar, 2007 - 01:57 AM) *

QUOTE(KeyWiz @ 7 Mar, 2007 - 12:04 PM) *

Instead of passing so much information over the net, and slowing things down as they get bigger - more complex, create a CODED list of images. Then instead of sending "Whatever the item is" you send a value that equals that image.

If SentValue = 564 then ThisValue = 564
Lookup ThisValue

or better yet simply

ThisValue = SentValue
Lookup ThisValue

or even better still -

If you create a shared database, then both computers can simply lookup the CURRENT value on the database.
then there is no communications to the other computer(s), just a shared database on one of the computers, or on a server.

If you don't understand all of this, use the Absolute Beginners Guide to Programming that is available in VB 2005 express, it covers a lot of things quite well.





IPB Image
That's very program wise using variable is a good thing.I have also same question about network gaming because im planning to make a simple one.My question is how can i send a picture and message in a client-server relation using ip/winsock

User is offlineProfile CardPM
+Quote Post

orangeslide8
RE: Using Your Wirless Network To Run A 2 Player Game
20 Mar, 2007 - 04:08 PM
Post #4

D.I.C Head
Group Icon

Joined: 29 Dec, 2006
Posts: 190



Thanked: 1 times
Dream Kudos: 25
My Contributions
well would you first want to take a picture of your form? then take that as a jpg (or any other file type) then somewhere else say form1.backroundimage = then you file


User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/4/08 03:50PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month