Global custom block
Advanced > Global Custom Block
- used for custom processing. For example: Number formatter
Stencyl-nator: Formatting number (stencyl-nator.blogspot.com)
- cannot use the attributes in the behavior.
- cannot use the attributes in the behavior.
the param name shown in snippets will be slightly differ from being shown in codes. In code, they will always have "__" placed at the left of the param names.
if one of your param name is "a" in snippet, it will appear __a in code;
One example of the global custom block is simultaneous equation:
s1[0] + s2[0] = sum[0]
s1[1] + s2[1] = sum[1]
Since Global custom blocks cannot access the attributes in their respective behaviors, users often have to type in codes. There is no hidden codes in this picture.
The other example for global custom block is calculator for quadratic equation. There is no code collision. but rather block field will differ slightly being on code and snippet.
Here is how to create: global custom blocks
No comments:
Post a Comment