Currently as it stands, ----/#### is used to adopt the previous sprite, but I would like to suggest that it would be greatly more flexible to have it adopt the previous characters instead.
The current use case I have for this is that I have a parent class that will have multiple children class that will behave similarly, where more or less the only differences would be the sprite animations.
Code: Select all
Fire :
ABCD A A_SomeAction();
ABCD B A_SomeOtherThing();
ABCD C A_CoolFunctionHere();
ABCD D A_Fire();
///blah blah blah
Code: Select all
Fire :
ABCE A A_SomeAction();
ABCE B A_SomeOtherThing();
ABCE C A_CoolFunctionHere();
ABCE D A_Fire();
///blah blah blah
Code: Select all
Fire :
ABCF A A_SomeAction();
ABCF B A_SomeOtherThing();
ABCF C A_CoolFunctionHere();
ABCF D A_Fire();
///blah blah blah
And for every child class that I need to make, I would have to type this code over and over. Alternatively, it could be more like this:
Parent class:
Code: Select all
Fire :
ABC# A A_SomeAction();
ABC# B A_SomeOtherThing();
ABC# C A_CoolFunctionHere();
ABC# D A_Fire();
///blah blah blah
Children Classes:
Code: Select all
Fire :
ABCE A 0;
goto Super::Fire;
Code: Select all
Fire :
ABCF A 0;
goto Super::Fire;
Code: Select all
Fire :
ABCG A 0;
goto Super::Fire;
While text data isn't that costly these days, I imagine this would also be decent for reducing file sizes as well.
Currently as it stands, ----/#### is used to adopt the previous sprite, but I would like to suggest that it would be greatly more flexible to have it adopt the previous characters instead.
The current use case I have for this is that I have a parent class that will have multiple children class that will behave similarly, where more or less the only differences would be the sprite animations.
[code]
Fire :
ABCD A A_SomeAction();
ABCD B A_SomeOtherThing();
ABCD C A_CoolFunctionHere();
ABCD D A_Fire();
///blah blah blah
[/code]
[code]
Fire :
ABCE A A_SomeAction();
ABCE B A_SomeOtherThing();
ABCE C A_CoolFunctionHere();
ABCE D A_Fire();
///blah blah blah
[/code]
[code]
Fire :
ABCF A A_SomeAction();
ABCF B A_SomeOtherThing();
ABCF C A_CoolFunctionHere();
ABCF D A_Fire();
///blah blah blah
[/code]
And for every child class that I need to make, I would have to type this code over and over. Alternatively, it could be more like this:
Parent class:
[code]
Fire :
ABC# A A_SomeAction();
ABC# B A_SomeOtherThing();
ABC# C A_CoolFunctionHere();
ABC# D A_Fire();
///blah blah blah
[/code]
Children Classes:
[code]
Fire :
ABCE A 0;
goto Super::Fire;
[/code]
[code]
Fire :
ABCF A 0;
goto Super::Fire;
[/code]
[code]
Fire :
ABCG A 0;
goto Super::Fire;
[/code]
While text data isn't that costly these days, I imagine this would also be decent for reducing file sizes as well.