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

#1 2010-06-27 12:35:50

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Need some help/advice with Squeaking around

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)


Yawn.

Offline

 

#2 2010-06-27 13:04:13

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Need some help/advice with Squeaking around

Here, this is how you make the <offline?> block:

Code:

online
     | t1 |
     t1 _ 0 / 0.
     ^ true

when 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)


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#3 2010-06-27 13:19:42

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: Need some help/advice with Squeaking around

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.


Yawn.

Offline

 

#4 2010-06-27 13:34:02

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Need some help/advice with Squeaking around

ok then

offline
|t1|
t1_ true.
^ t1


You can now reach me on Twitter @johnnydean1_

Offline

 

#5 2010-06-27 13:40:23

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: Need some help/advice with Squeaking around

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)


Yawn.

Offline

 

#6 2010-06-27 13:59:53

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Need some help/advice with Squeaking around

@ScratchReallyROCKS, why are you dividing by zero?
@jd1, why are you assigning a constant to a variable, then returning that variable?

Simply:

Code:

offline
    ^ true

In a BROWSER window (light green, bottom pane)


nXIII

Offline

 

#7 2010-06-27 14:06:11

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Need some help/advice with Squeaking around

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
    ^ true

In a BROWSER window (light green, bottom pane)

As he said it would not work.


You can now reach me on Twitter @johnnydean1_

Offline

 

#8 2010-06-27 14:07:23

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: Need some help/advice with Squeaking around

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)


Yawn.

Offline

 

#9 2010-06-27 15:31:55

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: Need some help/advice with Squeaking around

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)


Yawn.

Offline

 

#10 2010-06-27 18:15:44

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: Need some help/advice with Squeaking around

Another bump.

Come on, can't anyone at least attempt to help me?


Yawn.

Offline

 

#11 2010-06-28 06:56:13

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Need some help/advice with Squeaking around

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
    ^ true

In 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.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

Board footer