Hello, fellow users! I have recently created my first GitHub extension and… well… it kinda wasn’t going well. Well, I did find my extension once I put the url of my repository in, but no blocks were shown when I used it… anyone know what’s wrong and why? Help and code editing is appreciated. Thank you for your service. Here’s the extension to look at.
I’m being honest the code makes it look like a reskin of the scaling already built in
Using the % sign is a very old and finicky way of linking the blocks up. If you look at newer extensions, you’ll see how you should be doing it with the $ sign. And how to use
//% sprite.shadow = variable_get
//% sprite.defl = “mySprite”
I do not remember if this is the correct syntax. You’ll have to look at a newer extension. It might be variables_get or get_variable, idk.
Also, if you want to put things into the sprites tab, you can just use “namespace sprites” without all the “//%” stuff and they will be added. All that stuff only needs to be defined once per namespace, so just using the sprites namespace makes it a lot easier.
You can look at my extension Making an extension for every JavaScript exclusive feature I can think of! for an example of a newer extension.