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

#1 2012-07-19 18:01:19

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Help Needed: How to make a script that recognizes the online player?

Hello! I'd like to know if there are any tricks or bug exploits that allow you to create a script that can determine whether a project is running online. I know how to write a script that will recognize the Java player, but I am not sure if there is also such a script for the Flash player.


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#2 2012-07-19 18:05:46

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: Help Needed: How to make a script that recognizes the online player?

Offline and flash register the same with obsolete/script error sensors. You could just have a block in the code that begins it all with a broadcast, so you have to download to manually start the project.


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#3 2012-07-19 18:06:17

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: Help Needed: How to make a script that recognizes the online player?


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#4 2012-07-19 18:06:25

Appletini
New Scratcher
Registered: 2012-07-18
Posts: 23

Re: Help Needed: How to make a script that recognizes the online player?

when flag clicked
set [indicator v] to [Offline]
obsolete!
set [indicator v] to [Online]
"Obsolete!" blocks are available herewink

Offline

 

#5 2012-07-19 18:14:14

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: Help Needed: How to make a script that recognizes the online player?

Thank you so much! You guys are wizards. ^^

Now if only I could also find a presentation mode check...


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#6 2012-07-19 18:16:49

Appletini
New Scratcher
Registered: 2012-07-18
Posts: 23

Re: Help Needed: How to make a script that recognizes the online player?

Yay! I'm a wizard!  smile

And I think that's impossible right now. Maybe, in 2.1, they'll add some blocks specifically for detecting running modes.  wink

Offline

 

#7 2012-07-19 18:24:31

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: Help Needed: How to make a script that recognizes the online player?

Appletini wrote:

Yay! I'm a wizard!  smile

And I think that's impossible right now. Maybe, in 2.1, they'll add some blocks specifically for detecting running modes.  wink

I see. What a pity. ^^

Thanks for your help though!


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#8 2012-07-19 18:26:03

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: Help Needed: How to make a script that recognizes the online player?

You know, I wonder if there is a check. Im going to look around and experiment.


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#9 2012-07-19 18:39:31

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: Help Needed: How to make a script that recognizes the online player?

Wes64 wrote:

You know, I wonder if there is a check. Im going to look around and experiment.

The only Scratch feature I know of that is presentation-only is the ability to drag "unlocked" sprites. However, currently I am not sure if there is a way to differentiate that from out-of-presentation mode dragging.

Besides, it requires user input to actually work.

Last edited by MyRedNeptune (2012-07-19 18:40:31)


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#10 2012-07-19 18:52:44

Wes64test
Scratcher
Registered: 2012-03-31
Posts: 23

Re: Help Needed: How to make a script that recognizes the online player?

I did find that the frame-rate remains constant in presentation mode, while it fluctuates in editing mode. But that really isn't for-sure.


If it can go wrong, it will. -Murphy's Law

Offline

 

Board footer