Discuss Scratch
- Discussion Forums
- » Announcements
- » Scratch 2.0 Offline Open Source Code!
- speakvisually
-
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
Scratch On!
Eric
Last edited by speakvisually (May 13, 2014 17:58:56)
- The_Duke
-
43 posts
Scratch 2.0 Offline Open Source Code!
hun sounds interesting ill check it out!

- kenza365
-
100+ posts
Scratch 2.0 Offline Open Source Code!
3rd post!
And awesome!
And awesome!

Last edited by kenza365 (May 13, 2014 17:58:09)
- Asjali
-
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
You might wanna fix that. xP
- liam48D
-
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.

- speakvisually
-
500+ 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.
Thanks for the heads up!
- scratcher7_13
-
1000+ 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-flashNice. Thanks!
Scratch On!
Eric
- MiniFluffyBug
-
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-flashWhat's that? I don't use the offline editor, but I'm a little interested in it.
Scratch On!
Eric
- technoboy10
-
1000+ posts
Scratch 2.0 Offline Open Source Code!
Awesome!
Hopefully this will allow quicker bug fixes in the future.

Hopefully this will allow quicker bug fixes in the future.
- novice27b
-
1000+ posts
Scratch 2.0 Offline Open Source Code!
Cool!
What does the stuff in the “3d_render_src” directory do?
What does the stuff in the “3d_render_src” directory do?
- LiFaytheGoblin
-
1000+ posts
Scratch 2.0 Offline Open Source Code!
Awesome, I should check that out

- lisa-awesome_
-
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





(And I hope the smiley face ``Roll`` does not mean rolling eyes
Last edited by lisa-awesome_ (May 13, 2014 18:44:31)
- MeDiaMond
-
500+ posts
Scratch 2.0 Offline Open Source Code!
Thanks and all credits to the Scratch Team for making this wonderful website!I totally agree to you!TRUST ME, the Scratch Team are GREAT
(And I hope the smiley face ``Roll`` does not mean rolling eyes

- DadOfMrLog
-
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…?
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)
- Fiat500Abarth
-
52 posts
Scratch 2.0 Offline Open Source Code!
Awesome!!





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






I've never used ActionScript, but I'll have a look at it.
- goldfish678
-
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?
- Discussion Forums
- » Announcements
- » Scratch 2.0 Offline Open Source Code!