Now be prepared for submission requests. HM123
Offline
sparks wrote:
Sorry to hear that, successor! You've been a great help I don't suppose you can finish the blocks-as-images thing for the library when you have a moment so they render arguments?
I'll do that at the weekend.
Offline
Since we have a librarian resigning, shouldn't you hire a new one? Hopefully a librarian that will bear some of the enormous Scratch block weight that Scimonster is currently bearing on his own...
Offline
OK, I'm not going to just wait for you guys to do an update. Here's some more blocks. Pictures are now made!
('%n closer value: %n or %n' #r #Closer:One:Two:) Closer: t1 One: t2 Two: t3 | L g | t1 isInf ifTrue:[^ 0]. t1 isNaN ifTrue:[^ 0]. t2 isInf ifTrue:[^ 0]. t2 isNaN ifTrue:[^ 0]. t3 isInf ifTrue:[^ 0]. t3 isNaN ifTrue:[^ 0]. L _ t2. g _ t3. L > g ifTrue:[ g _ t2. L _ t3]. t1 < ((L+g)/2) ifTrue:[ ^ L]. ^ g
('%n is closer to %n than %n?' #b #Closer:To:Than:) Closer: t1 To: t2 Than: t3 t1 isInf ifTrue:[^ 0]. t1 isNaN ifTrue:[^ 0]. t2 isInf ifTrue:[^ 0]. t2 isNaN ifTrue:[^ 0]. t3 isInf ifTrue:[^ 0]. t3 isNaN ifTrue:[^ 0]. ^ ((t2 - t1) abs) < ((t2 - t3) abs)
Note: Since it has to be closer, numbers with equal distance, such as <12 is closer to 11 than 10>, will return false.
('viewing mode' #r #ViewingMode) ViewingMode (self ownerThatIsA: ScratchFrameMorph) ifNil: [^ 'presentation']. ^ (self ownerThatIsA: ScratchFrameMorph) viewMode asString
EDIT: Never mind.
EDIT2: I'm using the Panther block maker to make block pictures; SO much easier! They're still Scratch blocks though.
EDIT3: Blocks made. Panther makes blockmaking so much easier!
EDIT4: (viewing mode) fixed!
Last edited by Greenatic (2011-09-17 14:13:40)
Offline
can i replace the successor as a librarian?
Offline
@joefarebrother: Sorry, I don't think you'll be chosen. I was kinda thinking Hardmath123 would do a good job.
@Greenatic: The second should be a boolean.
Offline
scimonster wrote:
@joefarebrother: Sorry, I don't think you'll be chosen. I was kinda thinking Hardmath123 would do a good job.
@Greenatic: The second should be a boolean.
:S I should have stayed, then I would have had a shot -_- :S
Offline
Greenatic, the first and second are like opposites, right?
The first reports which it's closer to, and the second reports if it's closer to A.
Offline
Scimonster, please don't reject people because you want me to become the next BL, because I don't really have time to manage that much at all.
Offline
Hardmath123 wrote:
Scimonster, please don't reject people because you want me to become the next BL, because I don't really have time to manage that much at all.
That's not why; it's because I don't think he would have done a good job.
@jslomba: nXIII quit, but he would have done a good job too. :3
Offline
Sorry, but do you have a SIMPLE url block code without "box 1" and stuff? and if so, please can you post a link to the page. (ps, not allowed to download)
Offline
Ashurathehedgehog wrote:
Sorry, but do you have a SIMPLE url block code without "box 1" and stuff? and if so, please can you post a link to the page. (ps, not allowed to download)
lol, we're talking about the blocks in scratch, not url blocks.
Offline
Ashurathehedgehog wrote:
Sorry, but do you have a SIMPLE url block code without "box 1" and stuff? and if so, please can you post a link to the page. (ps, not allowed to download)
What do you mean? Like the block has a set URL to open?
Offline
As brilliant as nXIII is, I'm not sure he'd have the time or patience for it I agree hardmath123 would be an excellent choice but he seems to think he's too busy which is fine.
I'm working both Saturday and Sunday This week so won't be on much, could someone perhaps mildly nag theSuccessor about the block image renderer project for me since I can't?
Offline
sparks wrote:
As brilliant as nXIII is, I'm not sure he'd have the time or patience for it I agree hardmath123 would be an excellent choice but he seems to think he's too busy which is fine
what about LS97?
Offline
scimonster wrote:
@Greenatic: The second should be a boolean.
Oh yeah...I better go fix that.
EDIT: Fixed.
Last edited by Greenatic (2011-09-16 16:23:21)
Offline
Ashurathehedgehog wrote:
Sorry, but do you have a SIMPLE url block code without "box 1" and stuff? and if so, please can you post a link to the page. (ps, not allowed to download)
You mean just a block that opens a url?
('open URL %s' #- #OpenURL:)
OpenURL: t1
ScratchPlugin primOpenURL: t1
sci_test wrote:
Greenatic, the first and second are like opposites, right?
The first reports which it's closer to, and the second reports if it's closer to A.
Yes.
Last edited by Greenatic (2011-09-16 16:25:31)
Offline
('GCF of %n and %n' #r #GCF:And:) GCF: t1 And: t2 | L c gcf | t1 isInf ifTrue:[^ 0]. t1 isNaN ifTrue:[^ 0]. t2 isInf ifTrue:[^ 0]. t2 isNaN ifTrue:[^ 0]. L _ t1 abs. L > (t2 abs) ifTrue:[ L _ t2 abs]. c _ 1. gcf _ 1. [L < c] whileFalse:[ (t1/c) = ((t1/c) rounded) ifTrue:[ (t2/c) = ((t2/c) rounded) ifTrue:[ gcf _ c]]. c_c+1]. ^ gcf
('LCM of %n and %n' #r #LCM:And:) LCM: t1 And: t2 |L c gcf | t1 isInf ifTrue:[^ 0]. t1 isNaN ifTrue:[^ 0]. t2 isInf ifTrue:[^ 0]. t2 isNaN ifTrue:[^ 0]. L _ t1 abs. L > (t2 abs) ifTrue:[ L _ t2 abs]. c _ 1. gcf _ 1. [L < c] whileFalse:[ (t1/c) = ((t1/c) rounded) ifTrue:[ (t2/c) = ((t2/c) rounded) ifTrue:[ gcf _ c]]. c_c+1]. ^ (t1*t2)/gcf
Last edited by Greenatic (2011-09-16 19:16:04)
Offline
IMPORTANT NOTE: In the library post, Scimonster incorrectly stated the location of some code for my |make { v} draggable| and |make { v} undraggable| blocks. Scratch-Blocks > SpriteArgMorph > event handling > presentMenu is the correct location; he used "other" instead of "event handling".
('image %s exists?' #b #ImageExists:) ImageExists: t1 media do: [: t2| (t2 asString asUTF8) = (t1, ' [image]') ifTrue:[^ true]]. ^ false
('sound %s exists?' #b #SoundExists:) SoundExists: t1 media do: [: t2| (t2 asString asUTF8) = (t1, ' [sound]') ifTrue:[^ true]]. ^ false
(checks costumes/backgrounds and sounds)
('media item %s exists?' #b #MediaExists:) MediaExists: t1 media do:[:t2| t2 isImage ifTrue:[ (t2 asString asUTF8) = (t1, ' [image]') ifTrue:[^ true]]. t2 isSound ifTrue:[ (t2 asString asUTF8) = (t1, ' [sound]') ifTrue:[^ true]]]. ^ false
NOTE: The next three require the three above blocks, and a method alteration. See the |make { v} draggable| and |make { v} undraggable| blocks for instructions on the presentMenu alteration, but use the methods outlined in these blocks.
('image %s exists at %m?' #b #Image:ExistsAt:) Image: t1 ExistsAt: t2 | t3 | t3 _ self coerceSpriteArg: t2. (t3 isKindOf: ScriptableScratchMorph) ifFalse: [^ 0]. ^ t3 ImageExists: t1
('sound %s exists at %m?' #b #Sound:ExistsAt:) Sound: t1 ExistsAt: t2 | t3 | t3 _ self coerceSpriteArg: t2. (t3 isKindOf: ScriptableScratchMorph) ifFalse: [^ 0]. ^ t3 SoundExists: t1
('media item %s exists at: %m?' #b #Media:ExistsAt:) Media: t1 ExistsAt: t2 | t3 | t3 _ self coerceSpriteArg: t2. (t3 isKindOf: ScriptableScratchMorph) ifFalse: [^ 0]. ^ t3 MediaExists: t1
Last edited by Greenatic (2011-09-20 20:51:51)
Offline
will someone do a byob update soon?
Offline
joefarebrother wrote:
will someone do a byob update soon?
Or how about a full Scratch blocks update?
Offline
Greenatic wrote:
IMPORTANT NOTE: In the library post, Scimonster incorrectly stated the location of some code for my |make { v} draggable| and |make { v} undraggable| blocks. Scratch-Blocks > SpriteArgMorph > event handling > presentMenu is the correct location; he used "other" instead of "event handling".
Tomorrow.
Greenatic wrote:
joefarebrother wrote:
will someone do a byob update soon?
Or how about a full Scratch blocks update?
^^;
I'm not so good at BYOB updates, but I'll try if I can find them.
Offline