Replies: 2 comments 3 replies
-
Blocks from Scratch and what they could look like in Block Coding:
This block wasn't as simple: Other useful GDScript functions: Scratch doesn't use lists as unique arguments and instead converts them to generic values ( Getting an element from an array typically involves an index that can be out of bounds. In Scratch In my opinion, the error should be kept since an empty value would have to be handled anyway, and so that users wouldn't get unexpected values or expect default values in other languages, especially manual memory languages like C. Also, I think that 1 dimensional arrays would be the baseline, considering typed arrays such as |
Beta Was this translation helpful? Give feedback.
-
Interesting discussion. My main question would be what's the application, why would you need the array handling. You mention "enemy spawns or a fnf charting system". I don't know what is the latter, but for spawining we have high level blocks in the SimpleSpawner node. Then you can configure the node properties in the Inspector and add a BlockCode as child to use the high level blocks like "start spawning" or "stop spawning". This is also what you would do regularly in Godot, create a spawner node, unlike in Scratch were everything has to happen programmatically. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
You should add arrays like scratch lists so people can read info from a array to do stuff like enemy spawns or a fnf charting system!
Beta Was this translation helpful? Give feedback.
All reactions