Discuss Scratch

robloxnoob27
New Scratcher
100+ posts

more timer blocks

set timer to blank seconds block
set timer to[]seconds::sensing
it sets the timer to a number you put in the input
so
set timer to[50]seconds::sensing
would set the timer to 50 seconds

set timer style to block
set timer style to [count-up v]::sensing
i'll explain the drop-downs:
count-up: it's the current style of the timer, its like a stopwatch
countdown: like an alarm clock, it counts down. it stops when it reaches 0 seconds
robloxnoob27
New Scratcher
100+ posts

more timer blocks

sit3
TheOfficialNussia
Scratcher
73 posts

more timer blocks

Supportttt
oddbotout11
Scratcher
43 posts

more timer blocks

TheOfficialNussia wrote:

Supportttt
you mean me?
TheOfficialNussia
Scratcher
73 posts

more timer blocks

oddbotout11 wrote:

TheOfficialNussia wrote:

Supportttt
you mean me?
?
oddbotout11
Scratcher
43 posts

more timer blocks

don't forget these timer block!
run timer with id []::sensing
stop timer with id []::sensing
get timer with id []::sensing
get timer with id () value :: sensing :: :: reporter
when timer with id [] > (10):: hat :: :: events

Last edited by oddbotout11 (Sept. 10, 2026 12:44:46)

robloxnoob27
New Scratcher
100+ posts

more timer blocks

sit3
I_wantasheep
Scratcher
1000+ posts

more timer blocks

ever heard of
forever
change [timer1 v] by (1)
wait (1) seconds
Bloxxerblox2015
Scratcher
43 posts

more timer blocks

no support.

I_wantasheep wrote:

ever heard of
forever
change [timer1 v] by (1)
wait (1) seconds
robloxnoob27
New Scratcher
100+ posts

more timer blocks

sit3
I_wantasheep
Scratcher
1000+ posts

more timer blocks

robloxnoob27 wrote:

sit3
why do you use “sit3” instead of bump
HAL95131
Scratcher
100+ posts

more timer blocks

Bloxxerblox2015 wrote:

no support.

I_wantasheep wrote:

ever heard of
forever
change [timer1 v] by (1)
wait (1) seconds

That is not accurate.
I_wantasheep
Scratcher
1000+ posts

more timer blocks

HAL95131 wrote:

Bloxxerblox2015 wrote:

no support.

I_wantasheep wrote:

ever heard of
forever
change [timer1 v] by (1)
wait (1) seconds

That is not accurate.
bloxxer's post or my post?
HAL95131
Scratcher
100+ posts

more timer blocks

I_wantasheep wrote:

bloxxer's post or my post?
Yours
NutOfCoco
Scratcher
100+ posts

more timer blocks

I_wantasheep wrote:

ever heard of
forever
change [timer1 v] by (1)
wait (1) seconds
This is a horrible workaround, instead:

define Add Timer (timer); Start: (start) Type: (type) 
if <(type) = [countdown]> then
add ((timer::sensing) + (start)) to [timerStart v]
add (-1) to [timerType v]
end
if <(type) = [stopwatch]> then
add ((timer::sensing) - (start)) to [timerStart v]
add (1) to [timerType v]
end
add (timer) to [timerID v]

define timer (timer)
set [idx v] to (item # of (timer) in [timerID v]
set [timer v] to ((item (idx) of [timerType v]) * ((timer::sensing) - (item (idx) of [timerStart v])))
HAL95131
Scratcher
100+ posts

more timer blocks

NutOfCoco wrote:

I_wantasheep wrote:

ever heard of
forever
change [timer1 v] by (1)
wait (1) seconds
This is a horrible workaround, instead:

define Add Timer (timer); Start: (start) Type: (type) 
if <(type) = [countdown]> then
add ((timer::sensing) + (start)) to [timerStart v]
add (-1) to [timerType v]
end
if <(type) = [stopwatch]> then
add ((timer::sensing) - (start)) to [timerStart v]
add (1) to [timerType v]
end
add (timer) to [timerID v]

define timer (timer)
set [idx v] to (item # of (timer) in [timerID v]
set [timer v] to ((item (idx) of [timerType v]) * ((timer::sensing) - (item (idx) of [timerStart v])))

Thank you. I would have assumed it had something to do with days since 2000, but that seems much more intuitive.
I_wantasheep
Scratcher
1000+ posts

more timer blocks

HAL95131 wrote:

I_wantasheep wrote:

bloxxer's post or my post?
Yours
i'm not as good as the guy above bro

edit: post 15

Last edited by I_wantasheep (Sept. 10, 2026 17:22:02)

robloxnoob27
New Scratcher
100+ posts

more timer blocks

NutOfCoco wrote:

I_wantasheep wrote:

ever heard of
forever
change [timer1 v] by (1)
wait (1) seconds
This is a horrible workaround, instead:

define Add Timer (timer); Start: (start) Type: (type) 
if <(type) = [countdown]> then
add ((timer::sensing) + (start)) to [timerStart v]
add (-1) to [timerType v]
end
if <(type) = [stopwatch]> then
add ((timer::sensing) - (start)) to [timerStart v]
add (1) to [timerType v]
end
add (timer) to [timerID v]
define timer (timer)
set [idx v] to (item # of (timer) in [timerID v]
set [timer v] to ((item (idx) of [timerType v]) * ((timer::sensing) - (item (idx) of [timerStart v])))
for a single timer
define timer type: (type) start time: (start time)
if<(type)=[countdown]>then
set[change v]to[-1]
else
set[change v]to[1]
end
set[timer v]to(start time)
reset timer
repeat until<(timer::variables)<[0]>
set[timer v]to((start time)+((change)*(timer)))
end
set[timer v]to[0]

Last edited by robloxnoob27 (Sept. 10, 2026 18:10:20)

TBMTheFunniestPerson
Scratcher
100+ posts

more timer blocks

Support, we need an actual block since we have a workaround. Workarounds increase block count.
robloxnoob27
New Scratcher
100+ posts

more timer blocks

robloxnoob27 wrote:

NutOfCoco wrote:

I_wantasheep wrote:

ever heard of
forever
change [timer1 v] by (1)
wait (1) seconds
This is a horrible workaround, instead:

define Add Timer (timer); Start: (start) Type: (type) 
if <(type) = [countdown]> then
add ((timer::sensing) + (start)) to [timerStart v]
add (-1) to [timerType v]
end
if <(type) = [stopwatch]> then
add ((timer::sensing) - (start)) to [timerStart v]
add (1) to [timerType v]
end
add (timer) to [timerID v]
define timer (timer)
set [idx v] to (item # of (timer) in [timerID v]
set [timer v] to ((item (idx) of [timerType v]) * ((timer::sensing) - (item (idx) of [timerStart v])))
for a single timer
define timer type: (type) start time: (start time)
if<(type)=[countdown]>then
set[change v]to[-1]
else
set[change v]to[1]
end
set[timer v]to(start time)
reset timer
repeat until<(timer::variables)<[0]>
set[timer v]to((start time)+((change)*(timer)))
end
set[timer v]to[0]
for multiple timers
when gf clicked
reset timer
delete all of [starttimes v]
delete all of[timerat v]
delete all of[upordown v]
repeat[10]//set this number to how many timers you want
add[0]to[starttimes v]
add[0]to[timerat v]
add[0]to[upordown v]
define create timer with id:(id) type:(type) start time:(start time)
replace item (id) of [starttimes v] with (start time)
replace item (id) of [timerat v] with (timer)
replace item (id) of [upordown v] with (((-2)*<(type)=[countdown]>)+(1))
define get timer with id:(id)
set [timer v] to((item(id)of[starttimes v])*(((timer)-(item(id)of[timerat v]))*(item(id)of[upordown v])))

Powered by DjangoBB