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

#1 2011-08-23 14:38:01

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Jens's Collapsable Scripts

Hey Jens, while looking at the Snap! nasciturus's (what does that mean lol) hierarchy, I found this. It looked to me like I should follow the instructions for Scratch Patches, so I did. It came up with an error, saying this:

Code:

EventHatMorph  other  helpScreenName
_____________________________________________________
helpScreenName
    (self isKindOf: MouseClickEventHatMorph)
        ifTrue: [^ 'mouseclickHat'].
    (self isKindOf: KeyEventHatMorph)
        ifTrue: [^ 'keyHat'].
    self eventName = 'Scratch-StartClicked' ifTrue: [^ 'startHat'].
    ^ 'broadcastHat'.
    End of block expected ->^ nil

I removed the ^ nil, and it went. When I tried to drag out a hat though, it turned into a red rectangle with a yellow outline and X across it.

I'm guessing that the entire thing was an experiment you never got to work right, right?

Last edited by scimonster (2011-08-23 14:38:13)

Offline

 

#2 2011-08-23 14:39:39

didjexpert
Scratcher
Registered: 2011-05-09
Posts: 23

Re: Jens's Collapsable Scripts

What are you talking about?


http://lunibook.com/signatures/Overbuild/maelstromFighterDeluxe/assembly.png

Offline

 

#3 2011-08-23 14:40:33

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Jens's Collapsable Scripts

didjexpert wrote:

What are you talking about?

Jens will (hopefully) understand what I'm talking about as soon as he sees it. That's mainly who it's for.

Offline

 

#4 2011-08-23 14:47:52

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Jens's Collapsable Scripts

Hi scimonster, collapsable scripts did really work, but on an older version of the Scratch (Squeak) source code, I think it was 1.2...


Jens Mönig

Offline

 

#5 2011-08-23 14:48:53

xIIV
New Scratcher
Registered: 2010-12-04
Posts: 72

Re: Jens's Collapsable Scripts

So why is not working now?


Helping helps others to help you.  wink

Offline

 

#6 2011-08-23 14:50:22

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Jens's Collapsable Scripts

Jens wrote:

Hi scimonster, collapsable scripts did really work, but on an older version of the Scratch (Squeak) source code, I think it was 1.2...

Odd. Why doesn't it work in 1.4? :S

Offline

 

#7 2011-08-23 15:45:48

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Jens's Collapsable Scripts

They work fine in Bingo 1.3...

Offline

 

#8 2011-08-23 15:52:54

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: Jens's Collapsable Scripts

Jens, what did you make the online snap with?


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#9 2011-08-23 19:58:29

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Jens's Collapsable Scripts

online Snap! is just JavaScript and a little bit of HTML (the Canvas API), I'm using a plain old text editor for it.


Jens Mönig

Offline

 

#10 2011-08-24 13:45:54

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Jens's Collapsable Scripts

scimonster wrote:

Jens wrote:

Hi scimonster, collapsable scripts did really work, but on an older version of the Scratch (Squeak) source code, I think it was 1.2...

Odd. Why doesn't it work in 1.4? :S

It's probably something got changed from the original source.

Offline

 

Board footer