strange "syntax error" problem :S
hey again, I know I'm asking a load of questions, but I find this problem really strange :S
I use Visual C++ 2008 Express, and i get this error "error C2061: syntax error : identifier 'platform'" Yes I've tried google ;)
ok, so I got this function:
Code:
void character::stop(HGE* hge, character& c, platform& plat){
float dt = hge->Timer_GetDelta();
if(c.charRect.Intersect(&plat.rect)){
if(dir == LEFT) x += speed * dt;
if(dir == RIGHT) x -= speed * dt;
if(dir == DOWN) y -= gravityPull;
if(dir == UP) y += speed * dt;
}
}
And one other that's kinda the same, just in a different class
Code:
void worldManager::chrIntersectPlat(character& c, platform& plat){
c.stop(hge,c,plat);
}
See, those look kinda the same, just that the first one has also the 'HGE* hge' argument... But the first one gives the error :S
Both have 'platform.h' included, why does it then only work on one of them?
Thanks in advance!