So I have a bunch of almost identical but seperate animations (Switches and displays in a VC)
Rather than go through and define 18 MGROUP_TRANSLATEs and 49 MGROUP_ROTATESs individually I thought I'd use an array.
Apperently this isn't allowed
So is there a way to achieve this same effect or am I just going to have to bite the bullet and do it all by hand ?
Rather than go through and define 18 MGROUP_TRANSLATEs and 49 MGROUP_ROTATESs individually I thought I'd use an array.
Code:
for (int i = 0; i < 18; i++)
{
static UINT NeedleGroups[i] = VC_GRP_Panel_Needle + i;
static MGROUP_TRANSLATE Needle[i] (
4,
&NeedleGroups[i], 1,
NeedlePos[i],
_V( 0, sin(RAD*8)*0.03, cos(RAD*8)*0.03),
);
anim_TapeGuage[i] = CreateAnimation(0.00);
AddAnimationComponent ( anim_TapeGuage[i], 0.0f, 1.0f, &Needle[i]);
}
Apperently this isn't allowed
So is there a way to achieve this same effect or am I just going to have to bite the bullet and do it all by hand ?
Last edited: