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
? 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
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