Is there a way to set it so that when the count on a certain variable ("Score1" and "Score2" in this case) reach a certain limit, the script stops or another command is given? I'm trying to get my Pong remake to have a score limit, but so far everything I've tried hasn't worked. Thanks for any help.
Offline
<when green flag clicked>
<forever><if><{ }>=something
<broadcast[ command
<stop script>
<end>
Offline
<when green flag clicked>
<forever>
<if> <( <{ score }> <>> 6 )>
<broadcast[ stop game ]>
<stop script>
<end>
Rest of Script Goes Here
<end>
Offline
MoreGamesNow wrote:
<when green flag clicked>
<forever>
<if> <( <{ score }> <>> 6 )>
<broadcast[ stop game ]>
<stop script>
<end>
Rest of Script Goes Here
<end>
You actually need an if-else, not an if I think.
Offline
No, because if it is true, it terminates the script beneath it anyway. If it isn't true, the script beneath it runs.
Offline