Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Jackalope, Scratch 2.0 Mod
- djdolphin
-
1000+ posts
Jackalope, Scratch 2.0 Mod
I've decided to restart Coyote, this time naming it after a different (imaginary) animal from the American Southwest. Preview!
New blocks:
New blocks:
point towards x: (0) y: (0) :: motion
set draggability to [draggable v] :: motion
[say v] [Hello!] :: looks //combined say/think/shout/whisper block from 2.0 Alpha
[say v] [Hello!] for (2) seconds :: looks
change [horizontal v] stretch by (10) :: looks
set [horizontal v] stretch to (100)% :: looks
set my name to [] :: sensing
ask [What's your name?] in dialog :: sensing
show dialog named [Message] with text [Hello!] :: sensing
move [variable v] to x: (0) y: (0) :: variables
set style of [variable v] to [normal v] :: variables
set color of [variable v] to [#ffffff] :: variables
make variable [] :: variables
delete variable [] :: variables
move [list v] to x: (0) y: (0) :: list
make list [] :: list
delete list [] :: list
delete clones of [all sprites v] :: control
for each [i v] in (10) :: control cstart
end
while <> :: control cstart
end
stop [all and press green flag v]
change pen transparency by (10) :: pen
set pen transparency to (50)% :: pen
draw rectangle at x: (0) y: (0) width (100) height (100) :: pen
draw circle at x: (0) y: (0) radius (50) :: pen
draw ellipse at x: (0) y: (0) width (50) height (100) :: pen
draw rectangle at x: (0) y: (0) width (100) height (100) border radius (10) :: pen
draw text at x: (0) y: (0) font [Helvetica] :: pen
<draggable? :: motion>
<visible? :: looks>
([color v] effect :: looks)
([horizontal v] stretch :: looks)
(costume name :: looks)
(my name :: sensing)
<I am a clone? :: control>
(total clone count :: control)
(my clone count :: control)
(() ^ () :: operators)
<true :: operators>
<false :: operators>
<[hello world] contains [world]? :: operators>
(letters (1) to (2) of [world] :: operators)
(index of [world] in [hello world] starting at (1) :: operators)
(unicode of [a] :: operators) //Yes, I know these two blocks are from Snap!.
(unicode (65) as letter :: operators)
(index of [thing] in [list v] starting at (1) :: list)
<pen is down? :: pen>
(pen color :: pen)
(pen hue :: pen)
(pen shade :: pen)
(pen transparency :: pen)
(color r: (0) g: (0) b: (0) :: grey)
([#ffffff] red :: grey)
([#ffffff] green :: grey)
([#ffffff] blue :: grey)
(color h: (0)° s: (0)% v: (0)% :: grey)
([#ffffff] hue :: grey)
([#ffffff] saturation :: grey)
([#ffffff] value :: grey)
(mix [#ffffff] with [#ffffff] :: grey)
(mix [#ffffff] (1) : (1) with [#ffffff] :: grey)
(color [#ffffff] (10)% brighter :: grey)
(color at x: (0) y: (0) :: grey)
(random color :: grey)
Last edited by djdolphin (Jan. 27, 2015 03:49:07)
- davidkt
-
1000+ posts
Jackalope, Scratch 2.0 Mod
Weren't we going to work on Float together?
- djdolphin
-
1000+ posts
Jackalope, Scratch 2.0 Mod
Eh, nothing really ever seemed to happen with Float, so I started this. Besides, I don't know how we would collaborate without using something like Github, and I don't really like using git Weren't we going to work on Float together?
- turkey3
-
1000+ posts
Jackalope, Scratch 2.0 Mod
Awesome! Is modding 2.0 harder or easier than 1.4? Or does it really depend on how well you know Squeak or ActionScript?
Also, another block you should add is create clone of at x
) y
).
Also, another block you should add is create clone of at x


- djdolphin
-
1000+ posts
Jackalope, Scratch 2.0 Mod
Well, I'm more familiar than ActionScript syntax than Squeak, so coding is easier for me. You have to compile ActionScript, though, so it makes it a little harder to debug than Squeak. Awesome! Is modding 2.0 harder or easier than 1.4? Or does it really depend on how well you know Squeak or ActionScript?
Also, another block you should add is create clone of at x) y
).
- DigiTechs
-
500+ posts
Jackalope, Scratch 2.0 Mod
For the each [i v] block - you should implement something like BYOB/Snap, with draggable variables which can be renamed. I could start working on stuff to do that, if you want - I'd just have to install flash stuff.
EDIT: whoops, forgot to escape BBCode. hehe.
EDIT: whoops, forgot to escape BBCode. hehe.
Last edited by DigiTechs (May 24, 2014 19:18:05)
- djdolphin
-
1000+ posts
Jackalope, Scratch 2.0 Mod
block - you should implement something like BYOB/Snap, with draggable variables which can be renamed. I could start working on stuff to do that, if you want - I'd just have to install flash stuff.For the each I was thinking of adding that myself, and was going to start on it later today. You're welcome to help, though!
- Asjali
-
100+ posts
Jackalope, Scratch 2.0 Mod
Finally, a Scratch mod with a name I really like…
… It has stretch?
I wanna have a go at using this when it comes out. (;
… It has stretch?
I wanna have a go at using this when it comes out. (;
- djdolphin
-
1000+ posts
Jackalope, Scratch 2.0 Mod
really like…Thanks! I had to rewrite most of the code that involves scaling to add stretch. Finally, a Scratch mod with a name I
… It has stretch?
I wanna have a go at using this when it comes out. (;

- davidkt
-
1000+ posts
Jackalope, Scratch 2.0 Mod
Can I use some of the blocks in Float? (I have little knowledge of Actionscript but am figuring it out)
- djdolphin
-
1000+ posts
Jackalope, Scratch 2.0 Mod
Sure, just give credit if you use code. Can I use some of the blocks in Float? (I have little knowledge of Actionscript but am figuring it out)
- MicroMacro
-
100+ posts
Jackalope, Scratch 2.0 Mod
Could you add a block like this:
delete all of my clones
- bobbybee
-
1000+ posts
Jackalope, Scratch 2.0 Mod
Interesting.
Can the foreach block be used with lists?
Can the foreach block be used with lists?
- djdolphin
-
1000+ posts
Jackalope, Scratch 2.0 Mod
I'll add Could you add a block like this:delete all of my clones
delete all clones of [myself v]
It can't currently. Interesting.
Can the foreach block be used with lists?

- bobbybee
-
1000+ posts
Jackalope, Scratch 2.0 Mod
It can't currently. Interesting.
Can the foreach block be used with lists?
How difficult would it be to add the functionality?
I imagine pseudo code:
while repeating:
if param1.type == list:
i = params
Shouldn't be that difficult to add, although I imagine Scratch probably has confusing way of creating C-Blocks.
- davidkt
-
1000+ posts
Jackalope, Scratch 2.0 Mod
I've put that in Float… It's not hard. Could you add a block like this:delete all of my clones
app.stagePane.deleteClones();
- djdolphin
-
1000+ posts
Jackalope, Scratch 2.0 Mod
That would delete all clones, even if they don't belong to the sprite. I decided to doI've put that in Float… It's not hard. Could you add a block like this:delete all of my clonesapp.stagePane.deleteClones();
delete clones of [myself v] :: controlinstead of having separate
delete clones of [all sprites v] :: control
delete clones of [Sprite1 v] :: control
delete all clones :: controland
delete all of my clones :: controlblocks.
Last edited by djdolphin (May 24, 2014 19:58:44)
- djdolphin
-
1000+ posts
Jackalope, Scratch 2.0 Mod
I'm going to release a preview version of Jackalope on Memorial Day (May 26, for those who don't live in the U.S.). Any suggestions for blocks I should add?
Last edited by djdolphin (May 25, 2014 00:44:09)
- goldfish678
-
1000+ posts
Jackalope, Scratch 2.0 Mod
I'm so excited! This is such a great way to kick off Memorial Day. Great idea, djdolphin - and I strongly believe you'll become a ST member someday.
- djdolphin
-
1000+ posts
Jackalope, Scratch 2.0 Mod
Thanks! I'm so excited! This is such a great way to kick off Memorial Day. Great idea, djdolphin - and I strongly believe you'll become a ST member someday.
- Discussion Forums
- » Advanced Topics
-
» Jackalope, Scratch 2.0 Mod