1. shift click the R in the scratch logo and click "turn fill screen off" or use the scratch source code and click "file" then "turn fill screen off",
2. click the gray area in the bottom-left corner, a menu that says "World" should come up, (if not, repeat this step, if you continue to get this delay, exit scratch, when it says "Save Changes?", press no, then restart scratch and continue from step 1.) anyway, click "open" then "browser", (if the Browser does not come up, refer to the debug help in step 2 part a.),
3. Click "scratch-objects" then "instance" then "scriptable-scratch-morph" then "Other-Ops", from there, click the box at the bottom of the window (not the scratch window, the browser window) (the one with text in it) and erase the text in it, then type:
negative: t1
then click right click (cmd+click on mac) and press accept or just press ctrl+a (cmd+click on mac)
4. in the same box, under the "nagative: t1" text, type:
^ 0 - t1 abs
and then click right click (cmd+click on mac) and press accept or just press ctrl+a (cmd+click on mac)
5. click "scriptable-scratch-morph" (yes, "scriptable-scratch-morph") and then "class"
6. then click "block-specs" and then "block-specs" (the one that just popped up) and scroll down to where it says "('not %b' #b #not)" and right next to it type:
#- ('negative %n' #r #negative: 10)then click right click (cmd+click on mac) and press accept or just press ctrl+a (cmd+click on mac) and exit the browser, then shift click the R in the scratch logo and click "turn fill screen on" or (if your using the scratch source code) click "file" then "turn fill screen on" then shift click the R in the scratch logo and click "save image screen for end-user" then click "accept" in the window that comes up, or (if your using the scratch source code) click "file" then "save image screen for end-user", after that, scratch should close, if not, wait until it does, then open scratch back up and now you have the block!
Offline
shouldn't it be just ^ 0 - t1? Isn't the block for inverting a number? and if it is then it is easier to use the (( ) - ( )) block and if it isn't then it doesn't seem very useful and could easily be done with the ([abs] of ( )) block. Just using the abs block would be much more useful aswell.
Offline
No I think its good, a nagative block at last!
Offline
You so stole my block. Lol.
Its
Negative of: aNumber ^ 0 - aNumber
NO ABS.
Last edited by bbbeb (2010-09-12 01:15:50)
Offline
bbbeb wrote:
NO ABS.
LOL. anyways.
does this work?
('%n negated' r negated 2)
because it should. only block spec. try it and tell me...
edit never mind it doesnt you need the method.
Last edited by LS97 (2010-09-12 03:45:57)
Offline
In fact, whenever you have this:
('do something to %n' #r #whatever: 3)
whatever: t1
^ t1 affected
you can more simply do:
('do something to %n' #r #affected 3)
Offline
TheSuccessor wrote:
In fact, whenever you have this:
('do something to %n' #r #whatever: 3)
whatever: t1
^ t1 affectedyou can more simply do:
('do something to %n' #r #affected 3)
Naw....
That would try to perform a zero-argument method (which doesn't exist) of ScriptableScratchMorph (or a subclass) with one argument. Not good.
Offline
Well, it worked for me...
Offline
This can be achieved WITHOUT hacking scratch, but I can't be bothered to type how unless someone messages me specifically.
Offline
NewlandBB wrote:
This can be achieved WITHOUT hacking scratch, but I can't be bothered to type how unless someone messages me specifically.
No duh.
(0-(number))
Offline
LS97 wrote:
bbbeb wrote:
NO ABS.
LOL. anyways.
does this work?
('%n negated' r negated 2)
because it should. only block spec. try it and tell me...
edit never mind it doesnt you need the method.
Nothing works without a method. Its as though i did this:
('broadcast %e with arg %s' - broadcast:withArg:)
Lol.
Offline
bbbeb wrote:
('broadcast %e with arg %s' - broadcast:withArg:)
Whats that even do
Offline
Sometimes the method is already there for you.
Offline
TheSuccessor wrote:
Sometimes the method is already there for you.
or it works if it's the sprite you're referring to (or if there's a special case in the execution wath's-it-called)
Offline
johnnydean1 wrote:
bbbeb wrote:
('broadcast %e with arg %s' - broadcast:withArg:)
Whats that even do
Examples. Ever heard of em?
And the block is useless.
Offline