Discuss Scratch

djdolphin
Scratcher
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:
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
Scratcher
1000+ posts

Jackalope, Scratch 2.0 Mod

Weren't we going to work on Float together?

Remember when I looked like this? I still do.


Float, my Scratch 2.0 mod | My (somewhat under-construction) blog
djdolphin
Scratcher
1000+ posts

Jackalope, Scratch 2.0 Mod

davidkt wrote:

Weren't we going to work on Float together?
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

!
turkey3
Scratcher
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).

djdolphin
Scratcher
1000+ posts

Jackalope, Scratch 2.0 Mod

turkey3 wrote:

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).
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.

!
DigiTechs
Scratcher
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.

Last edited by DigiTechs (May 24, 2014 19:18:05)


I do, in fact, have my own site; it's here.
I'm also working on a thing called Fetch. Look at it here!
@thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain.
djdolphin
Scratcher
1000+ posts

Jackalope, Scratch 2.0 Mod

DigiTechs wrote:

For the each 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.
I was thinking of adding that myself, and was going to start on it later today. You're welcome to help, though!

!
Asjali
Scratcher
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. (;


Asjali, the Grim Reaper of Necroposts
djdolphin
Scratcher
1000+ posts

Jackalope, Scratch 2.0 Mod

Asjali wrote:

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. (;
Thanks! I had to rewrite most of the code that involves scaling to add stretch.

!
davidkt
Scratcher
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)

Remember when I looked like this? I still do.


Float, my Scratch 2.0 mod | My (somewhat under-construction) blog
djdolphin
Scratcher
1000+ posts

Jackalope, Scratch 2.0 Mod

davidkt wrote:

Can I use some of the blocks in Float? (I have little knowledge of Actionscript but am figuring it out)
Sure, just give credit if you use code.

!
MicroMacro
Scratcher
100+ posts

Jackalope, Scratch 2.0 Mod

Could you add a block like this:

delete all of my clones

bobbybee
Scratcher
1000+ posts

Jackalope, Scratch 2.0 Mod

Interesting.

Can the foreach block be used with lists?

“Ooo, can I call you Señorita Bee?” ~Chibi-Matoran
djdolphin
Scratcher
1000+ posts

Jackalope, Scratch 2.0 Mod

MicroMacro wrote:

Could you add a block like this:

delete all of my clones
I'll add
delete all clones of [myself v]

bobbybee wrote:

Interesting.

Can the foreach block be used with lists?
It can't currently.

!
bobbybee
Scratcher
1000+ posts

Jackalope, Scratch 2.0 Mod

djdolphin wrote:

bobbybee wrote:

Interesting.

Can the foreach block be used with lists?
It can't currently.

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.

“Ooo, can I call you Señorita Bee?” ~Chibi-Matoran
davidkt
Scratcher
1000+ posts

Jackalope, Scratch 2.0 Mod

MicroMacro wrote:

Could you add a block like this:

delete all of my clones
I've put that in Float… It's not hard.
app.stagePane.deleteClones();

Remember when I looked like this? I still do.


Float, my Scratch 2.0 mod | My (somewhat under-construction) blog
djdolphin
Scratcher
1000+ posts

Jackalope, Scratch 2.0 Mod

davidkt wrote:

MicroMacro wrote:

Could you add a block like this:

delete all of my clones
I've put that in Float… It's not hard.
app.stagePane.deleteClones();
That would delete all clones, even if they don't belong to the sprite. I decided to do
delete clones of [myself v] :: control
delete clones of [all sprites v] :: control
delete clones of [Sprite1 v] :: control
instead of having separate
delete all clones :: control
and
delete all of my clones :: control
blocks.

Last edited by djdolphin (May 24, 2014 19:58:44)


!
djdolphin
Scratcher
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
Scratcher
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.

when she said
forever
play sound [aaaaaaaaaaaaa v] until done
end
i really felt that
djdolphin
Scratcher
1000+ posts

Jackalope, Scratch 2.0 Mod

goldfish678 wrote:

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.
Thanks!

!

Powered by DjangoBB

Standard | Mobile