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

#1 2007-10-11 07:07:04

acevipa
Scratcher
Registered: 2007-10-09
Posts: 17

Penalty Shootout Game Advice

I'm making a penalty shootout game. Actually I'm making 2 games. One is going to be a 1 player game and the other is going to be a 2 player game.

In both games how can I incorporate levels into my game so that when a certain score is reached it changes levels.

I've tried thinking of this myself. In my one player game, I've made it that I'm the kicker and that you have three options to shoot (right, centre and left). I've also made the goalkeeper randomly make a move. This is the exact same in the two player game. However, the only difference is that one of the players is the kicker and other player is the goalkeeper.

How could I incorporate levels into both games???

Offline

 

#2 2007-10-11 07:31:31

Dthen
Scratcher
Registered: 2007-05-16
Posts: 26

Re: Penalty Shootout Game Advice

You could try something along these lines...

Use a variable to store the score, and have a script on the background something like this:

<when green flag clicked>
<wait until> <(<{ score }>  <=> whatever you want )>
<change{ level }by(1
<set{ score  }to( 0


and also (on the background still, where it says next costume I really mean next background.) have a script along the line of this:

<when green flag clicked>
<forever>
<if><( <{ level }> <=> 1 )>
<switch to costume[ level one.
<end>
<if><( <{ level }> <=> 2 )>
<switch to costume[ level two
<end>
<if><( <{ level }> <=> 3 )>
<switch to costume[ level three etc. etc.
<end>
<end>



Sincerely hope this helps, that's all I could tihnk of off of the top of my head.

Last edited by Dthen (2007-10-11 07:36:42)

Offline

 

Board footer