Would this work?
[when I receive [script])
[set [count] to (0)]
[reset timer]
[repeat (60)]
[][wait until <key [space] pressed?>]
[][change [count] by (1)]
[][wait until <not <key [space] pressed?> >]
[end repeat]
[if <(timer) < (60)>]
[][say (join [You won! You scored: ] (count)]
[else]
[][say (join [You lost! You scored: ] (count) for (2) secs]]
[][broadcast [script]]
[end if, else]
Last edited by Jonathanpb (2011-11-13 23:53:59)
Offline
When /= clicked
set [count variable] to 0
-------------------------------------------------------------
repeat until <[count variable] > 59| if <touching mouse?> and <mouse down?>
change [click variable] by 1
wait until| Not <mouse down?>
--------------------------------------
if <[click variable] > 99>
play sound [yay]
-------------------
else
-----
play sound [nay]
--------------------
Hoped it helped!
~Anuw
Offline