cs293450

GabMod
a scratch mod

What is GabMod?
Gabmod is a mod of scratch 1.4 im making. Blocks like negate, half, and otherswere added including 2.0 experimental control blocks and scrolling blocks.

Screenshots

GabMod program

Blocks palette

New blocks

Readouts

Example Script

New blocks
(Negate (5) :: operators)
(Half (5) :: operators)
( [Input. ] :: operators)
(noop :: control)
clear counter :: control
incr counter :: control
for each [v v] in (10) :: control cstart

end
while <> :: control cstart

end
scroll right (10) :: motion
scroll up (10) :: motion
align scene [bottom-left v] :: motion
(x scroll :: sensing)
(y scroll :: sensing)

New download: https://www.dropbox.com/home?preview=GabMod.zip

Macie1234

A lot of these are workaroundable like
(negate (whatever))
Can be done like:
(( [abs v] of (whatever) ) * (-1))
,
(half (whatever))
can be done like:
((whatever) / (2))

while <whatever>

end
can be done like:
repeat until <not <whatever>>

end

Jonathan50

Cool, but I don't think the name NOOP for the counter is very helpful.

Jonathan50

Macie1234 wrote:

A lot of these are workaroundable like
(negate ())
Can be done like this:
((( [abs v] of () )) * (-1))
Well, negating a negative number makes a positive number, so it may be simplified to
(() * (-1))
but I'm not sure. What does the NEGATE block do with a negative number?

GRA0007

Nice, it's been quite a while since I've seen 1.4. I'm looking forward to seeing what you add.

PullJosh

Macie1234 wrote:

A lot of these are workaroundable like
(negate (whatever))
Can be done like:
(( [abs v] of (whatever) ) * (-1))
,
(half (whatever))
can be done like:
((whatever) / (2))

while <whatever>

end
can be done like:
repeat until <not <whatever>>

end
Just because something is workaroundable doesn't mean it isn't useful.

edward789121

Jonathan50 wrote:

Cool, but I don't think the name NOOP for the counter is very helpful.
yeah,would be better as.

cs377310

Macie1234 wrote:

A lot of these are workaroundable like
(negate (whatever::operators)::operators)
Can be done like:
(( [abs v] of (whatever::operators) ) * (-1))
,
(half (whatever::operators)::operators)
can be done like:
((whatever::operators) / (2))

while <whatever::control>::control cstart
...
end
can be done like:
repeat until <not <whatever::control>>
...
end

cs377310

Can this mod be added to the scratch mod list?

cs293450

cs377310 wrote:

Can this mod be added to the scratch mod list?
Y

f1lip

clear counter :: control
incr counter :: control
The blocks above are workaroundable.

cs377310

all are workaroundable
(([abs v] of (5)) * (-1))//use for negate
((5) / (2))//half
(join [Input. ] [])//input
(counter)//counter
set [counter v] to [0]//clear counter

change [counter v] by (1)//incr counter

set [Variable v] to [0]//for each variable in 10
repeat (10)
change [Variable v] by (1)
...
end

repeat until <not <...>>//while
...
end

Jonathan50

cs377310 wrote:

all are workaroundable
(([abs v] of (5)) * (-1))//use for negate
Negating a negative number should return a positive number, shouldn't it?

cs377310

Jonathan50 wrote:

cs377310 wrote:

all are workaroundable
(([abs v] of (5)) * (-1))//use for negate
Negating a negative number should return a positive number, shouldn't it?
For example, if I negate -5, then it would be 5.

Owengren

I can't install Gab Mod!

cs377310

Owengren wrote:

I can't install Gab Mod!
Why not?

goldfish678

cs293450 wrote:

New download: https://www.dropbox.com/home?preview=GabMod.zip
uhhh i don't have a dropbox account, not working

goldfish678

cs377310 wrote:

Can this mod be added to the scratch mod list?
There, added.

https://wiki.scratch.mit.edu/wiki/List_of_Scratch_Modifications

Owengren

cs377310 wrote:

Owengren wrote:

I can't install Gab Mod!
Why not?
When I click the button “Continue as Owen Grenney” it goes to the dropbox homepage and have an error.

vladshine

someone make a mod for scratch 0.1!