Discuss Scratch
- Discussion Forums
- » Suggestions
- » Sprite Inheritance
- lalala3
-
100+ posts
Sprite Inheritance
All right, the first matter of importance is to eliminate the unhelpful folks out there. If you find your argument against my idea running along the lines of “new Scratchers may/will be confused by this”, then, right now, I politely assure you that you are wrong, and not-so-politely tell you to clear off this thread until you have re-evaluated your assessment of the intelligences of young children (programmers, no less). Also, if you have no intention of properly reading this, then go away.
Sorry. Instinct from the 1.4 forums. Anyways, on to my idea. It occurred to me while I was thinking about the idea of sprites calling other sprites' methods. Through a long stretch, I reached this idea:
Add an option to create “child sprites,” sprites that are extended versions of other sprites, designed to perform more specific tasks, very much like inheritance in object-oriented programming. Child sprites are like duplicates, except the scripts and block definitions belong to the parent sprite, and don't show up in the child sprite. The child sprite possesses its own scripts and custom blocks, as well as those contained within its parent sprite. Also, the child sprite should have the ability to override block definitions in parent sprites.
Why not just duplicate it, you ask? Well, for large-scale sprites, it creates a great deal less clutter to have child sprites, and, if necessary, child sprites of child sprites, and so on. It also allows for a very organized approach to programming. Sprite inheritance would be a useful addition to Scratch.
Sorry. Instinct from the 1.4 forums. Anyways, on to my idea. It occurred to me while I was thinking about the idea of sprites calling other sprites' methods. Through a long stretch, I reached this idea:
Add an option to create “child sprites,” sprites that are extended versions of other sprites, designed to perform more specific tasks, very much like inheritance in object-oriented programming. Child sprites are like duplicates, except the scripts and block definitions belong to the parent sprite, and don't show up in the child sprite. The child sprite possesses its own scripts and custom blocks, as well as those contained within its parent sprite. Also, the child sprite should have the ability to override block definitions in parent sprites.
Why not just duplicate it, you ask? Well, for large-scale sprites, it creates a great deal less clutter to have child sprites, and, if necessary, child sprites of child sprites, and so on. It also allows for a very organized approach to programming. Sprite inheritance would be a useful addition to Scratch.
- I_LOVE_TO_MAKE_STUFF
-
1000+ posts
Sprite Inheritance
Isn't that what clones are for? Why not just duplicate it, you ask? Well, for large-scale sprites, it creates a great deal less clutter to have child sprites, and, if necessary, child sprites of child sprites, and so on. It also allows for a very organized approach to programming. Sprite inheritance would be a useful addition to Scratch.
- Wahsp
-
1000+ posts
Sprite Inheritance
Yeah I feel like clones can accomplish a lot of thisIsn't that what clones are for? Why not just duplicate it, you ask? Well, for large-scale sprites, it creates a great deal less clutter to have child sprites, and, if necessary, child sprites of child sprites, and so on. It also allows for a very organized approach to programming. Sprite inheritance would be a useful addition to Scratch.
- not_pythonic
-
2 posts
Sprite Inheritance
Clones inherit the properties of a SINGLE sprite. For clones of clones, you have to define your own variables, properties, etc. I believe custom blocks are global by default.Yeah I feel like clones can accomplish a lot of thisIsn't that what clones are for? Why not just duplicate it, you ask? Well, for large-scale sprites, it creates a great deal less clutter to have child sprites, and, if necessary, child sprites of child sprites, and so on. It also allows for a very organized approach to programming. Sprite inheritance would be a useful addition to Scratch.
- game600
-
3 posts
Sprite Inheritance
I agree so I don't have to change every enemy in my game the have the same stuff.
- CodeComet6161
-
500+ posts
Sprite Inheritance
please do not necropost I agree so I don't have to change every enemy in my game the have the same stuff.
- Cool_kid092
-
500+ posts
Sprite Inheritance
necroposting doesnt rlly exist in suggestionsplease do not necropost I agree so I don't have to change every enemy in my game the have the same stuff.
- Discussion Forums
- » Suggestions
-
» Sprite Inheritance