Ugh... really stupid error, please someone help
I''m not sure where you don''t understand, but I''ll do my best to explain: inside the sprite struct there is a 2 dimensional array called anims. I am sending the second dimension through MakeAnimation(). There is no problem with this because:
Produces the correct animation (0,1)
Sorry, its something in between MakeAnimation & Update sprite, or it is updatesprite
void MakeAnimation(SPRITEPTR sprite, int animindex, int numframes, int anim[]) { sprite->anims[animindex]=anim; fprintf(fp,"%d\n", sprite->anims[0][0]); fprintf(fp,"%d\n", sprite->anims[0][1]); sprite->curanimframes=numframes; sprite->indexinanim=0;}
Produces the correct animation (0,1)
Sorry, its something in between MakeAnimation & Update sprite, or it is updatesprite
AHA!!! I have figured it out. I don''t understand why, but, I can''t change the values of the enemies unless in the WinMain, I did a bunch of trial and error to see where the problem was, it was inbetween initenemies() and startup(), could I get an explanation why? I did fix the problem though.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement