LoginLogin
Might make SBS readonly: thread

Basics of Multiplayer #1

Root / Submissions / [.]

16bitcoderCreated:
Hello. I just wanted to help people with multiplayer on smilebasic if they only have one 3ds or need help!Like if this helped MPSTART Starts a local connection
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.
MPEND
MPCOUNT 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 @LOOP
Want more? Like and I may make another!

Can it go higher than 4 players

Replying to:IvanTheCOol123
Can it go higher than 4 players
Nah I don't think so.