Discuss Scratch
- PhoenixAndStuf
-
Scratcher
62 posts
More Cloning Features
Semi-support. The blocks provided seem a bit too complicated and niche, but I do support a built-in clone ID system.
- hill_walker123
-
Scratcher
100+ posts
More Cloning Features
why isn't this getting any more discussion
it's like my posts, just not getting attention
it's like my posts, just not getting attention
- hill_walker123
-
Scratcher
100+ posts
More Cloning Features
why isn't this getting any more discussion
it's like my posts, just not getting attention
- qwerty_wasd_gone
-
Scratcher
1000+ posts
More Cloning Features
Last edited by qwerty_wasd_gone (Dec. 8, 2022 17:45:38)
- UI-coder
-
Scratcher
500+ posts
More Cloning Features
I think clone indexes should be added as an extension, since I'm not sure if new scratchers would understand them
new scratchers don't even understand operations, I say fully add them
Last edited by UI-coder (Dec. 12, 2022 04:49:04)
- PkmnQ
-
Scratcher
1000+ posts
More Cloning Features
I can tell you that when I was a new Scratcher I understood operations very well (except mod). Better comparison would be broadcasts.I think clone indexes should be added as an extension, since I'm not sure if new scratchers would understand them
new scratchers don't even understand operations, I say fully add them
- epicboi17
-
Scratcher
100+ posts
More Cloning Features
support if used as extension as it can be confusing to beginners, but generally this is easy to understand what this does and 100% will be useful for clone to clone collisions
- hill_walker123
-
Scratcher
100+ posts
More Cloning Features
why isn't this getting any more discussion
it's like my posts, just not getting attention
- The_Blue_J
-
Scratcher
1000+ posts
More Cloning Features
Many games have enemy-to-enemy collisions and other similar things, and they are extremely hard to recreate in Scratch because it doesn't have a few cloning features. This suggestion is for a clone index and counter, and a few more clone-related blocks, to make it easier to make such projects.I think setting a variable to a local variable and make the counter update just before cloning is a replica of the clone index, which in my opinion, seems easier.
- Built-In Clone Index and Counter
A clone index would be a variable local to each clone of a sprite. The actual sprite would have a clone index of 0, and all the clones would have a clone index increasing by 1 depending on the order of creation, i.e. the original sprite would have a clone index of 0, the first clone created would have a clone index of 1, the second a clone index of 2, and so on. It would be in the “Sensing” category, and it would look like this:clone index :: control reporter
A clone counter would report the number of clones created by a particular sprite, so if Sprite A had cloned 8 times, its clone counter variable would report 8, and if Sprite B had cloned twice, its clone counter would report 2. It would look like this:clone count :: control reporter- Modify ([…] of [sprite]) block for clones
This would look like this:This would work as the currently existing block, but it would also include sensing for clones. You can use a clone index of 0 to get information about the original sprite.[... v] of clone index (0) of [sprite v] :: sensing reporter- Modify the <touching > block for clones
This would look like this:This would function the same as before and would include sensing for clones. As in suggested block #2, using a clone index of 0 would check for the original sprite.touching clone index (0) of [sprite v] ? :: sensing boolean- Modify the (distance to [sprite]) block
This would look like this:It would function the same , and the modifications work the same way as in block #2 and #3.distance to clone index (0) of [sprite v] :: sensing reporter- Modify these three motion blocks
Pretty self-explanatory by now.point towards clone index (0) of [sprite v] :: motion
go to clone index (0) of [sprite v] :: motion
glide (1) secs to clone index (0) of [sprite v] :: motion
If this would be too complicated for New Scratchers, it should probably be an extension, as suggested by @Yellowsheep43.
Please reply with your ideas and suggestions.








