Reuseability in Design Philosophy
|
|
Before I make a feature suggestion of this I like to discuss it here.
While I was recoding a game(rather not name it) I had to use basically the same code for lots of skills except change a couple of vars to make different damage. I realise that I could make 1 proc and have it handle all the skills but it kind of seems complicated for a language that supposed to be easy to use. I think that there should be a feature where I could have multiple objects be assigned to a same script or proc but so that this way I could assign objects from an inspector or something like that and based on each object I could change the variable values of it.
It could be as simple as declaring an object in a group called animals and naming the object dog. Then I could go to the inspector and assign the variables there instead of going and writting myvar = 2 or something all the time I create an object of the same group. Also maybe assigning variables could be done better from the inspector like attaching sound files to variables and playing them easier rather than defining them within script and then playing them.
Kind of seems redundant since variables can be assigned easy but still be a nice feature to have.
Anyways feel free to discuss and give your opinion.
(BTW I probably wandered off topic in the last big paragraph to dont tell me it has nothing to do with the topic)
|