This is a good little tutorial on how to assemble a new block, but what I, and I suspect others, would find really useful, is a video on how to utilize the code generated in a Blockly app. Finding the right places to insert the various snippets the block factory produces isn't quite as obvious as it might seem to those involved in the project.
so where do you put this kind of code (i know it is 4 year later lmao)javascript.javascriptGenerator.forBlock['set_axis'] = function(block, generator) { var dropdown_dropdownaxis = block.getFieldValue('dropdownaxis'); var number_distance = block.getFieldValue('distance'); // TODO: Assemble javascript into code variable. var code = '... '; return code; };
thank you Sir, it's 2020 and your video is as usual as ever. I am almost surprised that blockly factory has not changed at all during the 5 years that separates us from your video upload date.
Hi Neil, is there a tutorial available for someone with little programming experience to build blocky games. I'm struggling with getting my custom blocks to work in my html. Thank you
Are you using an O.S. other than Windows 7? My Chrome browser is up-to-date, but the GUI I'm getting from blockly-demo.appspot.com/static/demos/blockfactory/index.html looks a little different (missing scrollbars, etc.). It's the same problem for both Firefox and IE.
The OS used was Mac OSX, using Chrome. The trashcan graphic has been updated, and a help button has been added, but otherwise things should still look the same as in the video.
Neil Fraser I don't know what I did differently, but now when I load the block factory in chrome, the preview block isn't being cut off by the top left corner of the preview frame anymore. If you fixed it, thanks!
This is a good little tutorial on how to assemble a new block, but what I, and I suspect others, would find really useful, is a video on how to utilize the code generated in a Blockly app. Finding the right places to insert the various snippets the block factory produces isn't quite as obvious as it might seem to those involved in the project.
AND being able to make the block any color you want instead of a half saturated gray colored hue block
so where do you put this kind of code (i know it is 4 year later lmao)javascript.javascriptGenerator.forBlock['set_axis'] = function(block, generator) {
var dropdown_dropdownaxis = block.getFieldValue('dropdownaxis');
var number_distance = block.getFieldValue('distance');
// TODO: Assemble javascript into code variable.
var code = '...
';
return code;
};
thank you Sir, it's 2020 and your video is as usual as ever. I am almost surprised that blockly factory has not changed at all during the 5 years that separates us from your video upload date.
can you do a tutorial on generating custom code
Hi Neil, is there a tutorial available for someone with little programming experience to build blocky games. I'm struggling with getting my custom blocks to work in my html.
Thank you
Great! Can we establish a network topology with Block Factory?
Do you can to explain how to use the closure compiler? Help-me please :(
Thanks for tutorial. very good explanation.
dear Neil, how to use generated block code to use it in HTML?
thank you
Thanks for the Video! Is it possible to generate code for a different language which is not mentioned in the list? In my case it is C-sharp.
You will need to implement a custom generator.
Thank you so much from Brazil!
Thanks !
Are you using an O.S. other than Windows 7? My Chrome browser is up-to-date, but the GUI I'm getting from blockly-demo.appspot.com/static/demos/blockfactory/index.html looks a little different (missing scrollbars, etc.). It's the same problem for both Firefox and IE.
The OS used was Mac OSX, using Chrome. The trashcan graphic has been updated, and a help button has been added, but otherwise things should still look the same as in the video.
Neil Fraser I don't know what I did differently, but now when I load the block factory in chrome, the preview block isn't being cut off by the top left corner of the preview frame anymore. If you fixed it, thanks!
Hi Neil, my name is Nail. Thanks ...
How add include library?
Thank youuuuuuuuuuuuuuuuu
if your video was for people not to understand anything, you are to be congratulated. thanks.