To begin, I couldn’t find anything related to this (something I find very surprising) so I decided to create a topic on it myself.
We all know that right now we have custom blocks (I remember they used to be rainbow) in which you place code that you’ll use a lot in that project. This allows you to “create” your own blocks, thus allowing you to more effortlessly code! Great, right?
One problem: what if you have repeating code, but the variables in that code are different?
For example, in, let’s say, a money tapper game, we have different items that we can purchase to increase the amount of cash we make every second. While making the project, you’d have to input the same code in every object that requires it. With custom blocks with value inputs, you simply have to change a few variables and voila!, your work is done. I don’t know if that example made any sense, but hopefully no one’s confused.
I’ve seen this in Scratch, and on Microsoft Excel with functions. I’ve no doubt it’s in other coding languages in one form or another.
Since I can’t photoshop, I don’t have a picture to show everyone of what it would look like, but it’s not hard for me to envision it. However, if someone wants to, they are free to do so.
Personally, I’d use it to simplify my pixel art code even further, as the only difference with each object (each object is a horizontal line of pixels) are a couple of variables.
My paragraphs are probably cattywampus and all in the wrong order or something, but what do people think?