Check out the basics of multiplayer!
MPSTART (MAX PLAYERS),"(LOCAL NAME)"
- Example
MPSTART 4,"ANYSTR"(^What does that do?^) That example is allows 4-players connect to each other. They Can also only connect if all of their local names are anystr. MPEND Ends a local game.
MPENDMPCOUNT Number of users in local game
PRINT MPCOUNT(^What does this do^) It displays the amount of players. What the numbers mean: 1- 1 player 2- 2 player 3- 3 player 4- 4 player MPSEND Sends data to all users in local game
MPSEND "(Character String to send)"Example:
MPSEND " HI"(^What does this do?^) The example sends all players the message "hi" if they are all receiving. MPRECV OUT Receives data from MPSEND
MPRECV OUT SID,RCV$Example:
MPRECV OUT SID,RCV$ PRINT SID;":";RCV$(^WHAT DOES THIS EXAMPLE DO?^) Shows you the number of the device that Sent the data and what they sent. Example (Local Chat 4-player max):
MPSTART 4,"CHAT"
@loop
CLS
MPRECV OUT SID,RCV$
PRINT RCV$
PRINT"X:TYPE"
IF BUTTON()==#X THEN WAIT 10:GOTO @SEND
WAIT 1:GOTO @LOOP
@SEND
ME$=DIALOG("","")
MPSEND ME$
GOTO @LOOPWant more? Like and I may make another!
