Discuss Scratch

speakvisually
Scratch Team
500+ posts

Scratch 2.0 Offline Open Source Code!

We've open sourced the Scratch 2.0 editor code! You can find the code in the following repository on Github, https://github.com/LLK/scratch-flash

Scratch On!
Eric

Last edited by speakvisually (May 13, 2014 17:58:56)

liam48D
Scratcher
1000+ posts

Scratch 2.0 Offline Open Source Code!

First post!

Cool!

202e-202e-202e-202e-202e UNI-CODE~~~~~
The_Duke
Scratcher
43 posts

Scratch 2.0 Offline Open Source Code!

hun sounds interesting ill check it out!
kenza365
Scratcher
100+ posts

Scratch 2.0 Offline Open Source Code!

3rd post!
And awesome!

Last edited by kenza365 (May 13, 2014 17:58:09)

Yoda3D
Scratcher
86 posts

Scratch 2.0 Offline Open Source Code!

Sweet!

Generation 4: the first time you see this copy and paste it on top of your sig in the scratch forums and increase generation by 1. Social experiment.

Want to use emeralds as a material in minecraft? Try this FREE mod I made: https://www.dropbox.com/s/jc0pyblel65v87x/EmeraldMod1.7.10.jar?dl=0
Do you want more out of scratch? Get TONS of awesome blocks here: http://grannycookies.weebly.com/scratchext.html
Asjali
Scratcher
100+ posts

Scratch 2.0 Offline Open Source Code!

The link provided includes the period which is meant to end the sentence, resulting in a 404 when clicked.
You might wanna fix that. xP


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

Scratch 2.0 Offline Open Source Code!

But, uh, it gives me a link with a “.” at the end. If you edit your post, that should fix it.

202e-202e-202e-202e-202e UNI-CODE~~~~~
speakvisually
Scratch Team
500+ posts

Scratch 2.0 Offline Open Source Code!

liam48D wrote:

But, uh, it gives me a link with a “.” at the end. If you edit your post, that should fix it.

Thanks for the heads up!
scratcher7_13
Scratcher
1000+ posts

Scratch 2.0 Offline Open Source Code!

speakvisually wrote:

We've open sourced the Scratch 2.0 editor code! You can find the code in the following repository on Github, https://github.com/LLK/scratch-flash

Scratch On!
Eric

Nice. Thanks!

I am officially a Minecraft modder. And my signature has officially joined the kumquat war.

Soundcloud | Soundcloud | Soundcloud
MiniFluffyBug
Scratcher
500+ posts

Scratch 2.0 Offline Open Source Code!

speakvisually wrote:

We've open sourced the Scratch 2.0 editor code! You can find the code in the following repository on Github, https://github.com/LLK/scratch-flash

Scratch On!
Eric

What's that? I don't use the offline editor, but I'm a little interested in it.

This signature has been eaten by kumquats. It will recover soon!

technoboy10
Scratch Team
1000+ posts

Scratch 2.0 Offline Open Source Code!

Awesome!

Hopefully this will allow quicker bug fixes in the future.

my github
“I wish I had more funny quotes to take out of context” -me, about myself
novice27b
Scratcher
1000+ posts

Scratch 2.0 Offline Open Source Code!

Cool!
What does the stuff in the “3d_render_src” directory do?

Super Hexagon in Scratch! Desktop specs: 2x Intel Xeon X5450 @ 3.0GHz, 32GB DDR2 ECC RAM, GTX 480, 128GB NVMe SSD, Arch Linux / MacOS / Windows 10
RIP dynamic sigs. Both bugs I found have now been patched
LiFaytheGoblin
Scratch Team
1000+ posts

Scratch 2.0 Offline Open Source Code!

Awesome, I should check that out


Scratch Community Moderator • Deutsch, English, Français, Español
DACH Scratch WikiEN Scratch WikiAll Scratch WikisA Scratch Wiki in your native language








lisa-awesome_
Scratcher
3 posts

Scratch 2.0 Offline Open Source Code!

Thanks and all credits to the Scratch Team for making this wonderful website!


TRUST ME, the Scratch Team are GREAT







(And I hope the smiley face ``Roll`` does not mean rolling eyes

Last edited by lisa-awesome_ (May 13, 2014 18:44:31)

MeDiaMond
Scratcher
500+ posts

Scratch 2.0 Offline Open Source Code!

lisa-awesome_ wrote:

Thanks and all credits to the Scratch Team for making this wonderful website!


TRUST ME, the Scratch Team are GREAT







(And I hope the smiley face ``Roll`` does not mean rolling eyes
I totally agree to you!
DadOfMrLog
Scratcher
1000+ posts

Scratch 2.0 Offline Open Source Code!

Woah, excellent! Never done anything with Flash/ActionScript before, but maybe I should have a go. (Oh for more hours in the day…)


After a quick scan through, I can already see a number of simple things that might be worth doing.
e.g. some basic checks to prevent unnecessary work if the new direction/size are same as previous:


public function setSize(percent:Number):void {

var newscale = Math.max(minScale, Math.min(percent / 100.0, maxScale));
if (scaleX == newscale) return;
scaleX = scaleY = newscale;



public function setDirection(d:Number):void {

d = (d > 180) ? d - 360 : d;
if (direction == d) return;
direction = d;

clearCachedBitmap(); <— will adding this deal with the rotated sprite touching bug…?
updateBubble(); <— also note that speech bubble should change when rotated
}


Would above really ‘just work’ in the way I think, or am I missing something…?

Last edited by DadOfMrLog (May 13, 2014 19:01:34)



Alternate account: TheLogFather –– HowTos and useful custom blocks (see studio). Examples below…


- String manipulation - - - X to power of Y - - - Clone point to clone - Detect New Scratcher - Speed tests studio -

V023Sonic5000
Scratcher
6 posts

Scratch 2.0 Offline Open Source Code!

Ok
001002003004
Scratcher
34 posts

Scratch 2.0 Offline Open Source Code!

how do you get it

follow 001002003004 and see his projects here is one of his:::ring //category=grey
click on this for an awesome platformer
Fiat500Abarth
Scratcher
52 posts

Scratch 2.0 Offline Open Source Code!

Awesome!!
I've never used ActionScript, but I'll have a look at it.

Has an evil kumquat eaten your signature? Don't worry, just call me, because I am a kumquat Catcher!!!!!!!!! And no evil kumquat will dare eat my signaChomp!
goldfish678
Scratcher
1000+ posts

Scratch 2.0 Offline Open Source Code!

So with this code, you can decompile the offline editor and make a Scratch 2.0 mod?

Powered by DjangoBB

Standard | Mobile