Create a variable and make it change every second unless certain constraints are placed on it.
For example:
If you wanted to make the timer stop when a sprite touches a certain color, you would use this:
[blocks]
<when green flag clicked>
<forever>
<if><touching color[
<wait until><< <not> >> <touching color[
<end>
<else>
<wait( 1 )secsc>
<change{ timer }by( 1
[/blocks]
Of course at the beginning you would set the timer to zero
On a completely unrelated note, shouldn't this be in All about Scratch?
Offline