This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Advanced Topics
  •  » Fully functional plugin to create scratchblocks code within Scratch!

#101 2013-01-19 03:09:38

WIlliam7777
Scratcher
Registered: 2012-07-21
Posts: 41

Re: Fully functional plugin to create scratchblocks code within Scratch!

LS97 wrote:

After working a couple hours with the source code, I finally managed to develop a completely automatic feature to convert your graphical blocks to forum block code, within your Scratch program!

To install, download the plugin here and install it by filing it in (see my next post on this thread for instructions). Please note that if you have made previous changes to the blocks' right click menu, you must pay extreme care as to avoid overriding your menu! All other code is new however and there are no risks in installing this.

To use, right click on any block in the scripting pane (so drag 'em out of the palette first) and select "export as scratchblocks". The code of that block plus all blocks below it (as with the duplicate function) will be automatically copied to your clipboard!

Please note this is experimental. Although I have tested all blocks on the forums, there may be some bug I did not spot. Therefore, if you experience any kind of problem on your system, please tell me below.

I love this!
I must remind you not to spam the forums with blocks, so keep the testing to this thread if you really must, but have fun using the plugin!

Offline

 

#102 2013-01-27 09:28:54

Chemi4001
Scratcher
Registered: 2013-01-12
Posts: 32

Re: Fully functional plugin to create scratchblocks code within Scratch!

Not work, I don't understand this tutorial.

Offline

 

#103 2013-01-27 09:34:56

Chemi4001
Scratcher
Registered: 2013-01-12
Posts: 32

Re: Fully functional plugin to create scratchblocks code within Scratch!

Wait wait!!! I watched the video and I have understand it now! Thanks!!!!!


here's how to find Lorentz factor in scratch. go here if you don't understand what is Lorentz factor : http://en.wikipedia.org/wiki/Lorentz_factor


when gf clicked
forever  
 set [Lorentz Factor v] to ((1) / ( [sqrt v] of ((1) - (((Velocity) * (Velocity)) / ((299752458) * (299752458))))))
end

Offline

 

#104 2013-01-27 12:18:29

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Fully functional plugin to create scratchblocks code within Scratch!

Chemi4001 wrote:

Wait wait!!! I watched the video and I have understand it now! Thanks!!!!!


here's how to find Lorentz factor in scratch. go here if you don't understand what is Lorentz factor : http://en.wikipedia.org/wiki/Lorentz_factor


when gf clicked
forever  
 set [Lorentz Factor v] to ((1) / ( [sqrt v] of ((1) - (((Velocity) * (Velocity)) / ((299752458) * (299752458))))))
end

Well done  smile
Thanks for downloading!

Offline

 

#105 2013-03-22 03:40:39

Devloper123
Scratcher
Registered: 2011-11-27
Posts: 100+

Re: Fully functional plugin to create scratchblocks code within Scratch!


when gf clicked

set [This plugin is really cool v] to [YEEESSSS!]

set [Thank You LS97, v] to [No really]


http://i45.tinypic.com/2jafczs.gifAnd Dev! Sign up on this forum!i like the  tongue  emoticon

Offline

 

#106 2013-04-07 10:48:11

GiorgosKarvelas365
New Scratcher
Registered: 2013-03-01
Posts: 37

Re: Fully functional plugin to create scratchblocks code within Scratch!

When gf clicked
forever
imagine
program
share
end

Offline

 

#107 2013-04-07 14:58:38

djdolphin
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Fully functional plugin to create scratchblocks code within Scratch!

GiorgosKarvelas365 wrote:

When gf clicked
forever
imagine
program
share
end

Please stop block spamming.

Offline

 

#108 2013-04-09 07:30:38

machinespray
Scratcher
Registered: 2012-05-09
Posts: 93

Re: Fully functional plugin to create scratchblocks code within Scratch!

Chemi4001 wrote:

Wait wait!!! I watched the video and I have understand it now! Thanks!!!!!


here's how to find Lorentz factor in scratch. go here if you don't understand what is Lorentz factor : http://en.wikipedia.org/wiki/Lorentz_factor


when gf clicked
forever  
 set [Lorentz Factor v] to ((1) / ( [sqrt v] of ((1) - (((Velocity) * (Velocity)) / ((299752458) * (299752458))))))
end

What is the Lorentz factor?


I am made a mod for Scratch. If you have any ideas for the mod please post it on this forum page.http://scratch.mit.edu/forums/viewtopic.php?id=108265http://internetometer.com/image/38591.png
I am http://blocks.scratchr.org/API.php?action=onlineStatus&type=text&user=machinespray

Offline

 

#109 2013-04-19 15:55:55

GiorgosKarvelas365
New Scratcher
Registered: 2013-03-01
Posts: 37

Re: Fully functional plugin to create scratchblocks code within Scratch!

don't use as many scratchers


[scratchblocks]
stop all
[/scratchblocks


Don't spawn colors at forums

Offline

 

#110 2013-04-24 03:16:46

shadowmouse
New Scratcher
Registered: 2013-02-03
Posts: 100+

Re: Fully functional plugin to create scratchblocks code within Scratch!

I haven't been folowing this so can someone tell me how far this is developed? e.g. does it have the same glitch as the forum code in that booleans come out as reporters and would it work with mods with new blocks, or is it modifiable to do so?

Offline

 

#111 2013-04-24 03:44:34

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: Fully functional plugin to create scratchblocks code within Scratch!

shadowmouse wrote:

does it have the same glitch as the forum code in that booleans come out as reporters and would it work with mods with new blocks, or is it modifiable to do so?

This generates "forum code" for you, from inside Scratch.

If you want a blocks plugin that you can easily add mods to, have a look at the scratchblocks2 plugin I wrote. You can add new blocks to it easily from Javascript — just modify scratchblocks2.blocks like so:

Code:

scratchblocks2.blocks += "\
## Looks ##   \
set stretch to (100)%   \
" // etc...

(Use three spaces and a backslash at the end of each line to escape the JS newlines.)

It still doesn't fix the rounded boolean issue, though — that's a CSS limitation afaik.

Last edited by blob8108 (2013-04-24 03:45:04)


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#112 2013-04-24 11:17:02

shadowmouse
New Scratcher
Registered: 2013-02-03
Posts: 100+

Re: Fully functional plugin to create scratchblocks code within Scratch!

Thanks!

Offline

 

#113 2013-04-24 11:50:06

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Fully functional plugin to create scratchblocks code within Scratch!

blob8108 wrote:

a CSS limitation afaik.

That's what you think!  tongue


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#114 2013-04-24 13:23:27

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: Fully functional plugin to create scratchblocks code within Scratch!

Hardmath123 wrote:

blob8108 wrote:

a CSS limitation afaik.

That's what you think!  tongue

I'm very happy for you to prove me wrong...  tongue


Things I've made: kurt | scratchblocks2 | this cake

Offline

 
  • Index
  •  » Advanced Topics
  •  » Fully functional plugin to create scratchblocks code within Scratch!

Board footer