Ian Collins wrote:[color=blue]
>
todd_montana@hotmail.com wrote:[color=green]
> > Thanks for your post Ian, I tried the modifications that you mentioned
> > but it still does not increment properly, Any more ideas?
> >[/color]
> Care to elaborate, with code?
>
> Please quote context in your reply.
>
> --
> Ian Collins.[/color]
The outcome is the same as the original way I had coded. The result is
that the second image in the array is loaded. I am after it to run
through all the filenames so as to create the animation. Lets say I add
extra images, it still wont continually increase the variable, frame.
[color=blue]
> private:
> static int frame;
> char Sprites[2][25]
> public:
> CAnimation( );[/color]
CAnimation( )::CAnimation( )
{
char Sprites[4][25] = {"image1.tga", "image2.tga", "image3.tga",
"image4.tga};
frame = 0;
++frame;
}
// frame should go, 0,1,2,3,4,etc...
// instead it now equals 1
I tried using a for loop but no joy
Thanks