I thought ide convert an agk program to tier 2 for some extra frame rates but my c++ is very rusty
I am getting the error message left of WaveWidth must have class/struct/union
declarations
typedef struct mySprite
{
int id; // id of sprite
int PointX; // makes it move
int centreX; // centre of sine wave x axis
int yPosition; // yPosition on y - axis
int amplitude; // the heaight of the wave
float speedX; // how fast sine travels on x - axis
int WaveWidth; // how wide the sinewave is
float frequency;// speed sprite should move up and down(0.0 to 6.0)
int img;// holds the image number for the sprite
}mySprite;
mySprite spr[strlen];
the error occurs here
xWave = agk::Sin(spr[num].PointX)*(spr[num].WaveWidth / 2) + spr[num].centreX;
thanks any help would be appreciated
fubar