Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Stop Score and Time At Certain Point.
- Vaultboy111101
-
Scratcher
8 posts
Stop Score and Time At Certain Point.
I am creating a game where you are timed 120 seconds and you need to get as much score as you can. I want everything to stop when the time reaches 120. How can I do that? Please help me. The image link shows what I have so far. http://imageshack.com/a/img924/6008/XYnOZ7.png
- cs641311
-
Scratcher
100+ posts
Stop Score and Time At Certain Point.
when green flag clicked
set [ v] to [0]
forever
wait (?) secs
change [ v] by (1)
if <?> then
set [ v] to [0]
end
end
Last edited by cs641311 (Feb. 2, 2017 17:51:15)
- Despicable_Dad
-
Scratcher
500+ posts
Stop Score and Time At Certain Point.
when green flag clicked
reset timer
repeat until <(timer) > [120]>
all
your
stuff
here
end
say (join [Game over - You scored ] (score))
- Bentton
-
Scratcher
53 posts
Stop Score and Time At Certain Point.
Create a separate script:
Whatever event block you want here :: hat :: events
wait (120) secs
stop [all]
- Vaultboy111101
-
Scratcher
8 posts
Stop Score and Time At Certain Point.
Thank you, you guys! Y'all should try the game I made with it. It is shared on here and it is called “Bite it off”
Last edited by Vaultboy111101 (Feb. 3, 2017 18:33:07)
- xXAssassinGodXx
-
Scratcher
1 post
Stop Score and Time At Certain Point.
nevermind
Last edited by xXAssassinGodXx (Dec. 12, 2017 17:43:03)
- gdpradd63847faa1b1fadde2fdaf
-
Scratcher
500+ posts
Stop Score and Time At Certain Point.
thx! u really helped me!
- eh-
-
New Scratcher
1 post
Stop Score and Time At Certain Point.
say [owoowoowoowooowoowoowoowoowoowo]
Last edited by eh- (Jan. 8, 2019 17:22:37)
- gravesendlogan
-
Scratcher
1 post
Stop Score and Time At Certain Point.
HELP ME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- deck26
-
Scratcher
1000+ posts
Stop Score and Time At Certain Point.
HELP ME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!If you have a question please create your own new topic and give details - otherwise you're just spamming.
- ScratchCatGoesMeow
-
Scratcher
63 posts
Stop Score and Time At Certain Point.
use:
reset timerinstead of
repeat until <(timer) > [120]>
...
end
reset timerend
forever
...
Last edited by ScratchCatGoesMeow (Jan. 18, 2019 17:15:09)
- Discussion Forums
- » Help with Scripts
-
» Stop Score and Time At Certain Point.