One of the most limiting things about scratch is the fact that you have to copy the same script everywhere if you have, say, 10 bad guys that do exactly the same thing. If there was some way to define a method, like in Java, you could have more efficient OO-style programs. This would keep a complicated program from taking up too much memory.
Offline
A method?
What do you mean?
Offline
I don't quite get what ou mean, but if you right-click on a script or sprite you can duplicate it.
Offline
art-on-black wrote:
One of the most limiting things about scratch is the fact that you have to copy the same script everywhere if you have, say, 10 bad guys that do exactly the same thing. If there was some way to define a method, like in Java, you could have more efficient OO-style programs. This would keep a complicated program from taking up too much memory.
It's already being implemented in Scratch 2.0.
All you have to do is construct a script the way you normally would, and you can tweak it to be set as it's own sequence. This way, all you need is one block each time you want to copy a script.
Offline
Methods, procedures, functions, whatever you want to call them are coming in Scratch 2.0!
Offline
trinary wrote:
This sounds like the clone block suggestion.
Methods are basically making your own blocks out of other blocks. (in scratch) It is already in Scratch 2.0.
Offline