I've been poking around in Scratch Squeak lately and looking at lots of stuff. I've been trying to make Mesh blocks (for info on Mesh, see this thread), and, seeing the # stuff already referenced in the Mesh code, I thought I'd use those in the Mesh block specs. Unfortunately, as you may have guessed, it didn't work. Does the code have to be in the block ops for it to work? Or am I missing something?
I also tried to create the <offline?> block suggested by TheSuccessor in this thread. When I put in the code and try to save it, it says something about offline not being a variable. I clicked "Declare temporary" just to get through, though I doubt that was the right thing. Then it said "Nothing more expected>^ [true]". Can someone help me with this?
Last edited by meowmeow55 (2010-06-27 14:10:09)
Offline
Here, this is how you make the <offline?> block:
online
| t1 |
t1 _ 0 / 0.
^ truewhen it says something like "t1 seems unused in this script. Remove it?" click 'no'
And there you go. You've got your <online?> block.
Last edited by ScratchReallyROCKS (2010-06-27 13:04:30)
Offline
Yeah, but that causes an error offline. I want this:
TheSuccessor wrote:
<offline?>
offline
^ true
Since custom blocks don't work online, this won't be true. Offline, it will be.
Will this work?
The problem is, I can't get Squeak to accept it.
Offline
ok then
offline
|t1|
t1_ true.
^ t1
Offline
It still gives me "Nothing more expected>^ t1" at the end when I try to save it.
Last edited by meowmeow55 (2010-06-27 13:40:54)
Offline
@ScratchReallyROCKS, why are you dividing by zero?
@jd1, why are you assigning a constant to a variable, then returning that variable?
Simply:
offline
^ trueIn a BROWSER window (light green, bottom pane)
Offline
nXIII wrote:
@ScratchReallyROCKS, why are you dividing by zero?
@jd1, why are you assigning a constant to a variable, then returning that variable?
Simply:Code:
offline ^ trueIn a BROWSER window (light green, bottom pane)
As he said it would not work.
Offline
Hey, it actually worked this time! I think the problem I was having with it before was because offline wasn't bolded like the other actions.
Now, does anyone know about how to make the mesh blocks work?
Last edited by meowmeow55 (2010-06-27 14:09:24)
Offline
Bump.
Does anyone know how to make the mesh blocks work? There probably just needs to be a bit (no pun intended) of code edited for it to work. Can anyone try looking at it, please?
Last edited by meowmeow55 (2010-06-27 15:32:08)
Offline
Another bump.
Come on, can't anyone at least attempt to help me?
Offline
johnnydean1 wrote:
nXIII wrote:
@ScratchReallyROCKS, why are you dividing by zero?
@jd1, why are you assigning a constant to a variable, then returning that variable?
Simply:Code:
offline ^ trueIn a BROWSER window (light green, bottom pane)
As he said it would not work.
The reason this wouldn't work is that, If you were making a mod with a modded online player, then it would report 'true' even if it was online. Otherwise it would though.
Offline