Ugh... really stupid error, please someone help

Started by
12 comments, last by Muzlack 22 years, 2 months ago
Ops! Sorry about how that last post looks.
// Ryan
Advertisement
...And you use of fprintf is correct. My mistake there.
// Ryan
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:
  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
--Muzlack
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.
--Muzlack

This topic is closed to new replies.

Advertisement