Code: Select all
struct Animations
{
var array Stand;
var array Walk;
var array Jump;
var array Run;
};
var private array Sprites;
Here is an idea for how to do this, is this going the right way?
Code: Select all
function DetermineActor(actor Target, out string targStr)
{
if(Target == class) {targStr = string(Target);}
else if(Target == class) {targStr = string(Target);}
[SANITY CHECKS ETC. GO HERE]
return targStr;
}
If I do this, the problem becomes typecasting back into a class and being able to do something like
Code: Select all
classTitle.Sprite[i].Walk[i]
I'm working on a parser that goes through .int files to assign textures to these arrays for the directional sprite thing. I have most of that written, but this is the last piece before I can test it.