What it does
CopyNetworkMessage brings a Multiplayer object into being: it is how the rest of the program comes to have one. It takes iFromMsgID (an integer), and answers an integer. iFromMsgID is the id of a FromMsg object, obtained elsewhere in the Multiplayer family.
Syntax
CopyNetworkMessage(iFromMsgID integer) → integerParameters
| Name | Type |
|---|---|
| iFromMsgID | integer |
Every form returns
integer
Example · generated
networkMessage = CopyNetworkMessage(1)DO Sync()LOOPCopyNetworkMessage is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.