This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-12-11 10:56:25

CarlosB108
New Scratcher
Registered: 2012-12-11
Posts: 1

Help

Im making a game of squash of two players
and trying to make a mode
of 3 or 5 games?

I need Advice?
Please

Offline

 

#2 2012-12-11 17:18:37

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Help

Hmm, what do you mean by

CarlosB108 wrote:

...a mode
of 3 or 5 games?...


http://i.imgur.com/1QqnHxQ.png

Offline

 

#3 2012-12-11 19:06:09

GenChico
Scratcher
Registered: 2012-11-08
Posts: 100+

Re: Help

TRocket wrote:

Hmm, what do you mean by

CarlosB108 wrote:

...a mode
of 3 or 5 games?...

Yeah, what he said.

Also I will report it to get moved.


http://i.imgur.com/Cb8HC.png

Offline

 

#4 2012-12-12 05:52:22

BetaSmozzick
Scratcher
Registered: 2012-02-25
Posts: 51

Re: Help

? Why would this be moved?

by 3 or 5 games you presumably mean best of 3 or 5 sets?

In which case you'd have the option and if you clicked 3 sets it takes 2 to win and if you clicked 5 it takes 3 to win; it shouldn't be too hard to do. What problems are you having with it?

Offline

 

#5 2012-12-21 10:39:14

PikachuPal123456
New Scratcher
Registered: 2012-12-08
Posts: 5

Re: Help

First make a variable for each player. Call them Player1Win and Player2Win. Then make this script for both player sprites (this is for 5 rounds). Set the starting x-y coordinates to what you want in your game (I used x:0 y:0 because it is the default. Xhange it to whatever you want).
When green flag is clicked
forever
if Player1Win = 4 or < 4
set position to x:0 y:0
if Player2Win = 4 or < 4
set position to x:0 y:0
if Player1Win = 5
say Player 1 Wins!
if Player2Wins = 5
say Player 2 Wins!

You must make a script for increasing the score. All you need to do is after the objective of the game is completed is change the variable for the player getting the point by 1.

Offline

 

Board footer