Does scratch has the option to generate (duplicate) objects while you are executing a scratch program?
Like for example if you have an object created, you press the green flag to start the program, and you press for example the space bar, that object will duplicate and will appear in an other part of the screen.
Im asking this because if i can do that, it will reduce a lot the cuantity of objects that i have to do in the program.
Thanks
Offline
No, there is no cloning in Scratch 1.4. There will be in 2.0!
Offline
scimonster wrote:
No, there is no cloning in Scratch 1.4.
There will be in 2.0!
![]()
They're considering it. It' not set in stone just yet.
johnm wrote:
We're considering this feature. We had a clone feature in earlier version of Scratch, so we know that a limit is needed or the system can quickly become so overloaded by out-of-control cloning that it doesn't even respond to the stop button. One thing we didn't have in that version was a "when sprite cloned" hat -- and I think that's a key innovation that could make this feature really usable.
Personally, I think it's a good idea if all clones disappear when you stop the project. If you want the effect of "persistent" clones you can write a setup script that makes as many copies as you need. For example, you might use that technique to create a bunch of bricks for a "breakout" game.
One final problem with clones is how to make them go away when they are no longer needed. You might have a "destroy this clone" block, of course. But another way to would be to have the clone automatically delete itself when it no longer has any running scripts. So, for example, a brick in a breakout game might have a script that waits until the ball sprite touches it, then adds one the score and stops. That would cause the the brick to automatically disappear when the ball touched it.
(Source)
Offline
OK thanxs I´ll be waiting the new version with enthusiasm
And this new scratch version, if i want to add the project that im making in this version to the new version, is going to take it? Or i have to do everything again in the new version :S Cause i have made maaany scripts to the game im performing, so it would be killing to start all over again XD
Offline
diegobarle wrote:
OK thanxs
I´ll be waiting the new version with enthusiasm
![]()
And this new scratch version, if i want to add the project that im making in this version to the new version, is going to take it? Or i have to do everything again in the new version :S Cause i have made maaany scripts to the game im performing, so it would be killing to start all over again XD
Yeah, 2.0 will support anything made in 1.4. I hope.
Offline