m (→‎Cloud Multiplayer: contraction removal SEMI_AUTOMATIC)
(Changed starting paragraph.)
Line 1: Line 1:
 
{{Wiki Standards}}
 
{{Wiki Standards}}
 
{{merge|Creating a Multiplayer Game}}
 
{{merge|Creating a Multiplayer Game}}
You can create '''multiplayer games''' using this tutorial. There are many ways to make one.
+
'''Multiplayer games''' are great! You can play them with your friends, and go head to head. Sadly, making a multiplayer game can seem difficult. Here are is a very simple way to make one!
  
 
==Simple==
 
==Simple==

Revision as of 02:25, 18 September 2014

Document stub.png This article or section may not have content matching Scratch Wiki editing standards. Please improve it according to Scratch Wiki:Guidelines and Scratch Wiki:Editing Conventions. (Date?)
DocumentInQuestion.png It has been suggested that this page's contents be merged with the page Creating a Multiplayer Game. You can discuss this on the page's talk page. (Date?)

Multiplayer games are great! You can play them with your friends, and go head to head. Sadly, making a multiplayer game can seem difficult. Here are is a very simple way to make one!

Simple

A simple script in player 1 can be used:

when flag clicked
forever
if <key [left v] pressed?>
move (-10) steps
end
if <key [right v] pressed>
move (10) steps
end

Now for player 2, The simple script is back, But its different:


when flag clicked
forever
if <key [a v] pressed?>
move (-10) steps
end
if <key [d v] pressed>
move (10) steps
end

You need to designate different keys for each sprite so two people can play the game on the same computer.

Cloud Multiplayer

If your rank is New Scratcher, do not use this method and do the one shown above and you can not play any cloud games or make one. Full Scratchers will use this method to make more than 1 computer play with you! In your backdrop, Have this script:

when flag clicked
forever
if <<(☁ player one?) = [1]> and <(☁ player 2?) = [1]>>
set [players: v] to [2]
else
set [players: v] to [1]

Just have that first, Then go to http://scratch.mit.edu/discuss/topic/33107/?page=1#post-279323.

Example: [1]