Discuss Scratch

StellaTheGreat
Scratcher
54 posts

timer thing

Ok so i made like a timer with variables. I need it so when it gets to 20 the timer stops and goes to a background that says Time's Up! or Game Over!
So can someone show me a script for that? If you could thank you so much.
say [from stellathegreat] for (2) secs

Last edited by StellaTheGreat (June 30, 2015 13:54:04)

deck26
Scratcher
1000+ posts

timer thing

Assuming you mean you have something like a variable which is increased once a second.

set [my-timer v] to [ 0]
repeat (20)

wait (1) secs
change [my-timer v] by (1)
end
switch backdrop to [gameover v]
StellaTheGreat
Scratcher
54 posts

timer thing

deck26 wrote:

Assuming you mean you have something like a variable which is increased once a second.

set [my-timer v] to [ 0]
repeat (20)

wait (1) secs
change [my-timer v] by (1)
end
switch backdrop to [gameover v]
thanks
StellaTheGreat
Scratcher
54 posts

timer thing

Help!!
I'm making a game with a timer. When the screen goes to gameover, I want my butterfly sprites to hide. I put these blocks:

when backdrop switches to [gameover v]
hide






and when the backdrop switches to backdrop gameover, they don't hide!
but when the backdrop goes to gameover, they'd be in the same costume as before but with a circle around it, so really, they'd be in a different costume, and does that have anything to do with it?
If you could help me that would be fantastic
Thanks!!
StellaTheGreat
deck26
Scratcher
1000+ posts

timer thing

Sharing the project would help.
StellaTheGreat
Scratcher
54 posts

timer thing

deck26 wrote:

Sharing the project would help.
Thanks, but my project is now finished! xD

Powered by DjangoBB