Discuss Scratch

August-3rd
Scratcher
7 posts

How to make a quicktime event

hey guys do you know how to make a quicktime event ( something where if you don't press the right button fast enough you lose)
becuase i have done it before.. i think.. it was like:
MONSTER:whenIreceivequicktime eventwait3secsbroadcastdeadstopscriptQBUTTON:whenIreceivequicktime eventifpressed?thenstopthescript??

Last edited by August-3rd (April 9, 2014 12:27:37)

coxy5
Scratcher
100+ posts

How to make a quicktime event

rather than “stopping the script” you can use the “stop other scripts in this sprit”.

However, you would need a forever loop around the if statement so that it continues to check after it has recieved the quicktime event rather than checking once and stopping.

1234abcdcba4321
Scratcher
1000+ posts

How to make a quicktime event

resettimerrepeatuntiltimer=3ifkeypressed?thenstopthis scriptblahblahblahblah
Alberknyis
Scratcher
1000+ posts

How to make a quicktime event

whentime starts or something like thatsetsafe?to0settimer_toany number you want283682 for 1 second, 851046 for 3 seconds.repeatuntiltimer_<0orsafe?=1ifkeymousepressed?thensetsafeto1how you get savedchangetimerby-1ifsafe=1thenbroadcastoops you livedelsebroadcastoops you died

Is this okay?

Last edited by Alberknyis (April 10, 2014 02:33:40)

August-3rd
Scratcher
7 posts

How to make a quicktime event

coxy5 wrote:

rather than “stopping the script” you can use the “stop other scripts in this sprit”.

However, you would need a forever loop around the if statement so that it continues to check after it has recieved the quicktime event rather than checking once and stopping.

ok
August-3rd
Scratcher
7 posts

How to make a quicktime event

Alberknyis wrote:

whentime starts or something like thatsetsafe?to0settimer_toany number you want283682 for 1 second, 851046 for 3 seconds.repeatuntiltimer_<0orsafe?=1ifkeymousepressed?thensetsafeto1how you get savedchangetimerby-1ifsafe=1thenbroadcastoops you livedelsebroadcastoops you died

Is this okay?

It doesn't work the only thig wrong is the timer doesnt work as a timer.. maybe i will define it as wait 3 seconds or something like that. Thanks for the help
bookworm7214
Scratcher
100+ posts

How to make a quicktime event

1234abcdcba4321 wrote:

resettimerrepeatuntiltimer=3ifkeypressed?thenstopthis scriptblahblahblahblah

Surely this is an efficient way to do it?
Dekoyy
Scratcher
1 post

How to make a quicktime event

bookworm7214 wrote:

1234abcdcba4321 wrote:

resettimerrepeatuntiltimer=3ifkeypressed?thenstopthis scriptblahblahblahblah

Surely this is an efficient way to do it?

I think so.
thomasgill
Scratcher
18 posts

How to make a quicktime event

whenclickedsetclickableto0 setclickedto0 wait1secssetclickableto1sayClick Me!for2secssetclickableto0 ifclicked=0 thensayTOO SLOW!for10secswhenthisspriteclickedifclickable=1 thensetclickedto 1sayWELL DONE!for2secs

Check out my small project using this code down below
http://scratch.mit.edu/projects/45506486

Powered by DjangoBB