This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-10-27 20:24:52

blargin
Scratcher
Registered: 2012-07-06
Posts: 49

online sensor

Do you want to know how to sense if your project is online or not to make things happen online but not on the program? Of course you do!
Use this script:

when gf clicked
delete (all v) of [online v]
add [offline] to [online v]
replace item (1 v) of [online v] with ((1)/(0))
replace item (1 v) of [online v] with [online]
end
when gf clicked
wait (1) secs
if <(item (1 v) of [online v]) = [online]>
  say [I'm online] for (2) secs
else
  say [I'm offline] for (2) secs
end
smile  Please give me credit for finding this out  smile

Offline

 

Board footer