Discuss Scratch
- Discussion Forums
- » Announcements
- » Scratch 2.0 Offline Open Source Code!
        ![[RSS Feed] [RSS Feed]](//cdn.scratch.mit.edu/scratchr2/static/__5b3e40ec58a840b41702360e9891321b__//djangobb_forum/img/feed-icon-small.png)  
- speakvisually
- 
                             Scratcher Scratcher
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
- 
                             Scratcher Scratcher
43 posts
Scratch 2.0 Offline Open Source Code!
hun sounds interesting ill check it out! 
                        
                        
                    
- kenza365
- 
                             Scratcher Scratcher
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
- 
                             Scratcher 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
                        
                        
                    You might wanna fix that. xP
- liam48D
- 
                             Scratcher 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. 
                        
                        
                    
- speakvisually
- 
                             Scratcher Scratcher
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
- 
                             Scratcher Scratcher
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
- 
                             Scratcher Scratcher
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
- 
                             Scratcher Scratcher
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
- 
                             Scratcher Scratcher
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
- 
                             Forum Moderator Forum Moderator
1000+ posts
Scratch 2.0 Offline Open Source Code!
Awesome, I should check that out 
                        
                        
                    
- lisa-awesome_
- 
                             Scratcher 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
 TRUST ME, the Scratch Team are GREAT
                                                                              


 
    
(And I hope the smiley face ``Roll`` does not mean rolling eyes
                        
                             TRUST ME, the Scratch Team are GREAT
 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 Scratcher
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
- 
                             Scratcher 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…?
                        
                            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
- 
                             Scratcher Scratcher
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
- 
                             Scratcher 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?
                        
                        
                    - Discussion Forums
- » Announcements
- 
            » Scratch 2.0 Offline Open Source Code! ![[RSS Feed] [RSS Feed]](//cdn.scratch.mit.edu/scratchr2/static/__5b3e40ec58a840b41702360e9891321b__//djangobb_forum/img/feed-icon-small.png)  
![[RSS Feed] [RSS Feed]](http://cdn.scratch.mit.edu/scratchr2/static/__5b3e40ec58a840b41702360e9891321b__//djangobb_forum/img/feed-icon-small.png)














 TRUST ME, the Scratch Team are GREAT
 TRUST ME, the Scratch Team are GREAT





