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

#1 2009-04-01 21:00:24

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Thes easiest way to tell if a project is off or online?

So my project plays differently online and off, but these differences can be fixed if I change some variables. So what I want to do is make something that checks if the project is online or if its downloaded then send a broadcast for either offline or online. Then the broadcasts will make the variables go to appropriate values.

Any ideas?


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#2 2009-04-01 21:12:30

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: Thes easiest way to tell if a project is off or online?

http://scratch.mit.edu/projects/1tchy/92324

This is probably the most efficient way  smile


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#3 2009-04-09 15:23:51

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

Re: Thes easiest way to tell if a project is off or online?

That method requires creating two sprites and to do the detection.

Here is another way that I discovered:

http://scratch.mit.edu/projects/BoltBait/480964

My method can be done without creating any sprites.  It only needs a single list variable.

Last edited by BoltBait (2009-04-09 18:40:07)


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

#4 2009-04-10 18:06:53

ManaUser
Scratcher
Registered: 2009-03-11
Posts: 100+

Re: Thes easiest way to tell if a project is off or online?

Very Nice!


http://i.imgur.com/SPYSM.gif http://i.imgur.com/t9k1Z.gif http://i.imgur.com/OwYVa.gif http://i.imgur.com/0qlZq.gif

Offline

 

#5 2009-04-10 19:36:20

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: Thes easiest way to tell if a project is off or online?

BoltBait wrote:

That method requires creating two sprites and to do the detection.

Here is another way that I discovered:

http://scratch.mit.edu/projects/BoltBait/480964

My method can be done without creating any sprites.  It only needs a single list variable.

a more variable-type way
http://scratch.mit.edu/projects/bhz/484959

Offline

 

#6 2009-04-10 19:38:57

golfer3
Scratcher
Registered: 2008-11-02
Posts: 1000+

Re: Thes easiest way to tell if a project is off or online?

bhz wrote:

BoltBait wrote:

That method requires creating two sprites and to do the detection.

Here is another way that I discovered:

http://scratch.mit.edu/projects/BoltBait/480964

My method can be done without creating any sprites.  It only needs a single list variable.

a more variable-type way
http://scratch.mit.edu/projects/bhz/484959

yours is good, i just looked at it.

Offline

 

#7 2009-04-10 21:41:41

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: Thes easiest way to tell if a project is off or online?

SeanCanoodle made one of those, however I'm too lazy to go get the link.


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

#8 2009-04-11 18:34:59

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

Re: Thes easiest way to tell if a project is off or online?

bhz wrote:

BoltBait wrote:

That method requires creating two sprites and to do the detection.

Here is another way that I discovered:

http://scratch.mit.edu/projects/BoltBait/480964

My method can be done without creating any sprites.  It only needs a single list variable.

a more variable-type way
http://scratch.mit.edu/projects/bhz/484959

Your project uses my exact method to do the detection.

And, you didn't even credit me or remix my script so that I would get any credit.  tongue


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

#9 2009-04-11 20:22:21

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: Thes easiest way to tell if a project is off or online?

BoltBait wrote:

bhz wrote:

BoltBait wrote:

That method requires creating two sprites and to do the detection.

Here is another way that I discovered:

http://scratch.mit.edu/projects/BoltBait/480964

My method can be done without creating any sprites.  It only needs a single list variable.

a more variable-type way
http://scratch.mit.edu/projects/bhz/484959

Your project uses my exact method to do the detection.

And, you didn't even credit me or remix my script so that I would get any credit.  tongue

Whoops. I thought I remixed it. I guess not... tongue  Credited on project page

Offline

 

Board footer