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

#1 2009-09-06 13:47:38

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Offline/online block or sensor?

since the list thing doesn't work anymore, do you think we could have an offline/online block, i think it would be very helpful for the load scripts im working on, and maybe for some other people.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#2 2009-09-07 00:38:32

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Offline/online block or sensor?

I don't see when you would use these blocks... I think Time Sensors would be more useful.


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#3 2009-09-07 08:26:11

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: Offline/online block or sensor?

Offline

 

#4 2009-09-07 11:35:55

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Offline/online block or sensor?

The-Whiz wrote:

This should help you.

thanks, hopefuly that'll work on all of the other versions...

but:

Jonathanpb wrote:

don't see when you would use these blocks... I think Time Sensors would be more useful.

I think maybe both would be good... time and online/offline. you could make a program to shout at you if your online after your curfue or something!


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#5 2009-09-07 11:55:37

Mike16112
Scratcher
Registered: 2007-06-09
Posts: 100+

Re: Offline/online block or sensor?

A online sensor would be cool

http://img802.mytextgraphics.com/flamewordmaker/2009/09/07/987b6297cfa7e48782e620ed11185fb1.gif
http://img80.imageshack.us/img80/198/mybanner4aa508f1f12ac.png


The programmer has a nap. HOLD OUT! PROGRAMMER!

Offline

 

#6 2009-09-07 13:51:15

Mike16112
Scratcher
Registered: 2007-06-09
Posts: 100+

Re: Offline/online block or sensor?

Here is s script for a online sensor.
first make 2 sprites, 1 called "sprite 1" and another "called sprite 2"

Here the script for sprite 1

<when green flag clicked>
<forever>
<go to[ sprite 2
<if><touching[ (join [sprite] [2])
<set{ online }to( yes
<else>
<set{ online }to( no
<end>

And the is no scripts for sprite 2

http://img802.mytextgraphics.com/flamewordmaker/2009/09/07/987b6297cfa7e48782e620ed11185fb1.gif
http://img80.imageshack.us/img80/198/mybanner4aa508f1f12ac.png
[harmful rickroll website removed by moderator]

Last edited by cheddargirl (2009-09-07 15:10:56)


The programmer has a nap. HOLD OUT! PROGRAMMER!

Offline

 

#7 2009-09-07 13:55:14

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: Offline/online block or sensor?

How does that work?

Offline

 

#8 2009-09-07 14:46:07

Mike16112
Scratcher
Registered: 2007-06-09
Posts: 100+

Re: Offline/online block or sensor?

I really don't know.

http://img802.mytextgraphics.com/flamewordmaker/2009/09/07/987b6297cfa7e48782e620ed11185fb1.gif
http://img80.imageshack.us/img80/198/mybanner4aa508f1f12ac.png
[harmful rickroll website removed by moderator]

Last edited by cheddargirl (2009-09-07 15:10:25)


The programmer has a nap. HOLD OUT! PROGRAMMER!

Offline

 

#9 2009-09-08 14:31:31

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Offline/online block or sensor?

does it work? And i think you've just copied/edited the scripting from that (This might help you) project which is linked.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#10 2009-09-08 15:25:19

alainmarsol
Scratcher
Registered: 2009-09-08
Posts: 1

Re: Offline/online block or sensor?

I also don't know.
Sorry.
But I am working on it.
----------------------------
securité piscine

Offline

 

#11 2009-09-08 23:31:00

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

Re: Offline/online block or sensor?

I've got a way to check online vs. offline:

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

Hope this helps.


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

 

Board footer