Online/Offline Test

Install Java to view this project right on your browser!

user_icon Dazachi shared it 2 years, 2 months ago
user_icon Based on Dazachi-More's project
658 views, 2 taggers, 16 people love it, 2 remixes by 2 people, 116 downloads, in 2 galleries
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

 
sthakkar sthakkar 2 months ago

What!

Dazachi Dazachi 4 months, 1 week ago

Guys, I wouldn't be surprised if this didn't work. It's from nearly 2 years ago.

Kinderlabor Kinderlabor 2 months ago

Great script! And as of today, it stills works (I tested it on Safari + Firefox).

Bentleygarvin Bentleygarvin 6 months, 2 weeks ago

wait no not possible

Bentleygarvin Bentleygarvin 6 months, 2 weeks ago

wait i get it IF THERE IS NO MOUSE SCRIPT THEN YOU ARE ONLINE IF THERE IS A MOUSE SCRIPT YOU ARE OFFLINE!!!

Bentleygarvin Bentleygarvin 6 months, 2 weeks ago

Hey you have to be online to see it if you did not download it!!!!!

frogger3140 frogger3140 9 months, 3 weeks ago

The thing with divide-by-0 checks is that it cancels turbo speed.

Person42 Person42 10 months, 3 weeks ago

u can force a download with this? How?

Boeing747guy Boeing747guy 11 months, 2 weeks ago

WTH you can't divide by zero!

Thehero Thehero 11 months ago

exactly

xboxdude xboxdude 1 year, 5 months ago

id use this when flag clicked: say:offline, if 0/0=i am cool* *put nothing in the if box* say:online

Dazachi Dazachi 1 year, 3 months ago

Lol. :)

knight5656 knight5656 1 year, 7 months ago

hmm, normally I'd use a variable... but I guess if you're just doing it for the heck of it, it doesn't really matter, but a variable would be helpful if you needed to know in other scripts/sprites online or offline. I use: GREEN FLAG clicked: Set "online?" to 0 || change "online?" by: ((0/0)+1) | but I've seen other ways to do it.

Dazachi Dazachi 1 year, 3 months ago

There are many ways.

InvaderGleep InvaderGleep 1 year, 8 months ago

I saw someone else who had it just with a variable, but this works too, it's pretty epic.

Dazachi Dazachi 1 year, 3 months ago

Yeah, there are some easier ways.

marioluigiman marioluigiman 1 year, 9 months ago

Lol i'm gonna make where if you download it it'll say: HEY NO DOWNLOADING

laurence12345 laurence12345 1 year, 9 months ago

Haha! And no, I'm not being sarcastic.

(view all replies)
Dazachi Dazachi 1 year, 9 months ago

Sure!

(view all replies)
midnightleopard midnightleopard 1 year, 10 months ago

you can also make a script that only works offline by starting it with "When I recieve Scratch-StartCLicked"

Dazachi Dazachi 1 year, 10 months ago

Yeah, there are many different ways how you can.

Jahava Jahava 2 years ago

Oh I get it. If you are offline it sees that you are trying to do something not allowed (0/0=error), but if you are online it doesn't care and keeps going.

Dazachi Dazachi 2 years ago

Yep. That is how.

Talikitty Talikitty 2 years ago

I don't get it...

Dazachi Dazachi 2 years ago

What don't you get???

(view all replies)
aigkids08 aigkids08 2 years ago

I don't get it.

Dazachi Dazachi 2 years ago

Online, it ignores it, but offline, it can tell something is wrong.

(view all replies)
Dazachi Dazachi 2 years ago

What don't you get?

(view all replies)
nxtcreator nxtcreator 2 years ago

i get it! the online version would just skip the change X by 0/0 while scratch would say that there was an error and would not continue with the script!

Dazachi Dazachi 2 years ago

Exactly!

(view all replies)
abrika abrika 2 years ago

i have a other way (link to project) to find out the script download it!

Dazachi Dazachi 2 years ago

Interesting...

Alexandru098 Alexandru098 2 years ago

(link to project) also works!

Dazachi Dazachi 2 years ago

I all ready knew that one. You can also just use the play sound thing replacing the motion block. Simple as that. :)

nickt95 nickt95 2 years ago

It no work. =[

Dazachi Dazachi 2 years ago

Hmmm, that is strange.

Dazachi Dazachi 2 years ago

Yes it does. :)

(view all replies)
BigDolphin BigDolphin 2 years ago

HEY, YOU HAVE TO SEE THIS: (link to project) BECAUSE ITS A BIT MORE THAN AN ONLINE TESTER!

Dazachi Dazachi 2 years ago

Wow!

BigDolphin BigDolphin 2 years ago

thanks!

Dazachi Dazachi 2 years ago

For what?

LS97 LS97 2 years ago

there's many of these around scratch, but they use complicated scripting with lists. this is quick and easy to remember

Dazachi Dazachi 2 years ago

You can also use play sound for the background

BashRap BashRap 2 years ago

This works better than the other online sencers I see. :) nice job!

Dazachi Dazachi 2 years ago

You can also use the play sound block.

Hidan09 Hidan09 2 years ago

EPIC

Dazachi Dazachi 2 years ago

XD

Dazachi Dazachi 2 years ago

Lol!

(view all replies)
Dazachi Dazachi 2 years ago

Epic thank you. :)

(view all replies)
spidermanreader spidermanreader 2 years, 1 month ago

I don't get it.

Dazachi Dazachi 2 years, 1 month ago

:)

Dazachi Dazachi 2 years, 1 month ago

Online, the player just ignores that it is impossible, but offline it stops the script. Get it now?

(view all replies)
henley henley 2 years, 1 month ago

Woah! That is awesome!! I'll bet this is going to (and it already does) have a LOT of downloads.

Dazachi Dazachi 2 years, 1 month ago

Thank you! XD

Dazachi Dazachi 2 years, 1 month ago

Wow! I just realized. This is my most popular project!

AmoebaMan AmoebaMan 2 years, 1 month ago

so what, it interprets it as zero online, but offline it gives you an error and stops the script?

cooljj100 cooljj100 2 years ago

this has many uses.(like forced download muwahaha) Your time will come to use this my friend.

Dazachi Dazachi 2 years, 1 month ago

Yeah.

Jonathanpb Jonathanpb 2 years, 1 month ago

Genius! :)

Dazachi Dazachi 2 years, 1 month ago

Glad you like it!

Brass45 Brass45 2 years, 1 month ago

Dazachi,I have a really big problem that i'm sending out to all of the ESI members: whether or not we should continue working on Darklight.You can find more details and reply your thoughts here (link to forums)

Dazachi Dazachi 2 years, 1 month ago

That is fine! I had a busy day too!

Dazachi Dazachi 2 years, 1 month ago

Did you see it?

(view all replies)
Dazachi Dazachi 2 years, 1 month ago

I will check it out.

(view all replies)
somelia somelia 2 years, 1 month ago

:0 AMAZING!

Dazachi Dazachi 2 years, 1 month ago

Thanks!!!

Tomeeeeee Tomeeeeee 2 years, 1 month ago

dazachi its your friend tomeeeeee this is a great piece of technology!

Dazachi Dazachi 2 years, 1 month ago

Hi! I hope you can use this tool in one of your projects.

MarioMan91 MarioMan91 2 years, 1 month ago

really cool dude this is awesome

Dazachi Dazachi 2 years, 1 month ago

Thank you! It really means a lot to me!

qwertypower qwertypower 2 years, 1 month ago

WOWOWOWOWOWOWOWOWOWOWOWOWOWOWOWOWOWOW!

Dazachi Dazachi 2 years, 1 month ago

:) Glad you like it.

pokemaster323 pokemaster323 2 years, 1 month ago

awsome!

Dazachi Dazachi 2 years, 1 month ago

Thank you very much.

floatingmagictree floatingmagic… 2 years, 1 month ago

That is epictastic. Can I use it?

Dazachi Dazachi 2 years, 1 month ago

Of course you can!

MathManiac MathManiac 2 years, 1 month ago

Nice! Loveit!

Dazachi Dazachi 2 years, 1 month ago

Thank you so much!

gershmer gershmer 2 years, 1 month ago

Excellent.

Dazachi Dazachi 2 years, 1 month ago

I hope you find a good use for it!

fmasroor fmasroor 2 years, 1 month ago

Haha! I get it! It gets stuck at 0/0 and doesn't move on!

Dazachi Dazachi 2 years, 1 month ago

Yep!

iCode-747 iCode-747 2 years, 2 months ago

Dazachi: I added 2 more IceOS backgrounds to the backgrounds forum thread, under 'requests'.

Dazachi Dazachi 2 years, 1 month ago

Oh course!

Dazachi Dazachi 2 years, 1 month ago

Sweet!

(view all replies)
iCode-747 iCode-747 2 years, 2 months ago

BRILLIANT!I LOVE THIS SO MUCH!!!

Dazachi Dazachi 2 years, 1 month ago

Glad you do. :)

08jackt 08jackt 2 years, 2 months ago

lol, nice idea :D

Dazachi Dazachi 2 years, 2 months ago

Thank you!

Chrischb Chrischb 2 years, 2 months ago

Nice discovery! :)

Dazachi Dazachi 2 years, 2 months ago

Thanks!

Brass45 Brass45 2 years, 2 months ago

Nice-we could use this to prevent Darklight from being downloaded(as if-that would give us bad reviews!).

Dazachi Dazachi 2 years, 2 months ago

Oh, ok. Lol.

Dazachi Dazachi 2 years, 2 months ago

Oh, please don't use it to have people not play the project.

(view all replies)
Bopitman99 Bopitman99 2 years, 2 months ago

Wow, this is way simpler than the old versions - Awesome! :D

Dazachi Dazachi 2 years, 2 months ago

Yep. :P

Greenboi Greenboi 2 years, 2 months ago

Your banner is ready (link to forums)

Dazachi Dazachi 2 years, 2 months ago

Checking it out.

Combinebobnt Combinebobnt 2 years, 2 months ago

Oooo goodie!

Dazachi Dazachi 2 years, 2 months ago

Lol. I hope you find a good use for it.

Common_Sense Common_Sense 2 years, 2 months ago

Very clever. This would explain how people used "0/0" to prevent people from using their downloaded source.

Dazachi Dazachi 2 years, 2 months ago

I see. Well I'm fine with people not wanting people to play there projects online, but not letting people see there project's code is mean.

Dazachi Dazachi 2 years, 2 months ago

Have people used it before for that reason?

(view all replies)
Warhunter Warhunter 2 years, 2 months ago

i'm confused. what is this?

Dazachi Dazachi 2 years, 2 months ago

It test if you are online or offline. The other way was more confusing, but this way is very easy.

mmww mmww 2 years, 2 months ago

when you online it says you are offline then says your online?

Dazachi Dazachi 2 years, 2 months ago

Click the green flag. :)

Dazachi Dazachi 2 years, 2 months ago

Crazy! 9 views in 4 minutes!

Sharlotta Sharlotta 2 years, 2 months ago

I've always wondered... why does this work? Could you explain it to me?

Dazachi Dazachi 2 years, 2 months ago

Your welcome!

Dazachi Dazachi 2 years, 2 months ago

Well for some reason, offline Scratch can't understand this problem, but online it does. I just accidently found it. So I guess I didn't really explain, but I sort of gave you the main idea. I hope. :)

(view all replies)
Please Wait...