Well, it's actually probably more complicated of an idea than the title suggests.
So here's the SCOOP. (you like that? See I had ice cream today it was good) I have a several animations of a character where each one is exactly the same, only with minor things added. For example, a run animation with a helmet on, a run animation with no helmet on, a run animation with hair, a run animation with a weapon equipped, etc. Each are a separate object that go into the Character family. But they all must have the same frame speeds, because besides the equipment, they look exactly the same.
I have simply far too many animations for each variation for me to want to go and input every individual frame's speed. I want to find out a method of doing this once and every animation has the same specific frame speeds. Note, the frameRATE is not what i'm trying to do. I was thinking doing this by instance variables but this is where I get stuck on my idea, which is this:
To have an object called "FrameSpeedz", and create an instance variable for each animation. So for "run", an instance variable titled "run" and have its value as text, describing the speed of each frame. If run had 5 frames let's say, then i'd want the text to show the frame speeds for each frame separated by a comma. I'll demonstrate my thoughts
Here's the speeds of the run animation.
Frame 1 = Speed of 3
Frame 2 = Speed of 2
Frame 3 = Speed of 5
Frame 4 = Speed of 4
Frame 5 = Speed of 9
And so I'd want to input the instance variable's value like this "3, 2, 5, 4, 9".
But that's where I get stuck because I don't know how to create an event that would make this work...but you see my idea? An event the Character family would utilize and thus all sprites in that family have the same frame speeds. Thanks for reading this far, could you please suggest some ideas? I'd prefer explaining and not just post a demo capx because sometimes I am away from my computer and on my phone. Thanks!