Wait I can make a simple 1
Code:
|t1|
t1_ 0 / 0.
^true
This will report true when using the player but error with everything else!
Offline
Yes as when used offline it causes a error!
Offline
johnnydean1 wrote:
will report true when using the player but error with everything else!
waveOSBeta wrote:
If Online
Stop Script
Else
Say [Hi!]
Doesn't work.
Gee, I wonder why, said henley sarcastically.
Offline
climber59 wrote:
New blocks don't work online guys.
Yesh. So You Might As Well Do
online ^ false
Offline
johnnydean1 wrote:
Wait I can make a simple 1
Code:
|t1|
t1_ 0 / 0.
^true
This will report true when using the player but error with everything else!
this is how it should be:
online
| t1 |
t1 _ 0 / 0.
[^ true]just a couple Squeak grammer corrections
Offline
Is there a valid block or not? I'm making my own Java Player.
Last edited by waveOSBeta (2010-06-18 21:00:39)
Offline
You can already sort of make this happen without hacking or modifying Scratch in any way
Just divide something by 0; it'll stop the script offline, but it'll keep running online. So something like this will do the trick:
When Green Flag clicked set [online] to [0] set [dummy] to ((16) / (0)) set [online] to [1]
And there y'are.
Offline
2 things:
I need one that works offline
A block would look cooler.
Offline
ScratchReallyROCKS wrote:
johnnydean1 wrote:
Wait I can make a simple 1
Code:
|t1|
t1_ 0 / 0.
^true
This will report true when using the player but error with everything else!this is how it should be:
Code:
online | t1 | t1 _ 0 / 0. [^ true]just a couple Squeak grammer corrections :P
I don't believe the "^true" should be bracketed, unless of course you are purposely creating a block, in which case you would most likely use
[^ true] value
or
^ [true]
the first returns the value "true" and the second returns a block which, when evaluated with no arguments, returns "true".
Secondly I simply do not understand the reasoning behind this block; if the block doesn't have an online definition, it will not evaluate, so the division by zero will not even occur online. There is nothing you can do except make use of an existing online player glitch or difference, such as a graphics mis-rendering or difference in interpolation methods when using "size".
Offline
waveOSBeta wrote:
Ahem.
I wrote:
I'm making my own Java Player.
Oh, in that case...
In the LOGO commands, put (under "***sensing***"):
define online [] [true]
and for the Squeak method
online
^ falseOffline
<offline?>
offline
^ true
Since custom blocks don't work online, this won't be true. Offline, it will be.
Will this work?
Offline
TheSuccessor wrote:
<offline?>
offline
^ true
Since custom blocks don't work online, this won't be true. Offline, it will be.
Will this work?
waveOSBeta wrote:
Ahem.
I wrote:
I'm making my own Java Player.
I already solved the problem a few posts up.
Last edited by nXIII (2010-06-19 11:50:36)
Offline
nXIII wrote:
TheSuccessor wrote:
<offline?>
offline
^ true
Since custom blocks don't work online, this won't be true. Offline, it will be.
Will this work?waveOSBeta wrote:
Ahem.
I wrote:
I'm making my own Java Player.
I already solved the problem a few posts up.
Yes, but still, will it work?
Offline
TheSuccessor wrote:
nXIII wrote:
TheSuccessor wrote:
<offline?>
offline
^ true
Since custom blocks don't work online, this won't be true. Offline, it will be.
Will this work?waveOSBeta wrote:
Ahem.
I already solved the problem a few posts up.
Yes, but still, will it work?
no, that reports "true" when offline.
Offline
nXIII wrote:
waveOSBeta wrote:
Ahem.
I wrote:
I'm making my own Java Player.
Oh, in that case...
In the LOGO commands, put (under "***sensing***"):Code:
define online [] [true]and for the Squeak method
Code:
online ^ false
Where you looking in my Scratch Player?
climber59 wrote:
Yeah but the block he posted said <offline?> not <online?>
-__- It does the same thing.
Last edited by MathWizz (2010-06-22 09:32:11)
Offline