struct Bat {
sf::RectangleShape shape();
int x=360;
int vx=1;
} batleft, batright;
int main ()
{
(...)
batleft.shape.setSize(sf::Vector2f(50, 20))
batright.shape.setSize(sf::Vector2f(50, 20))
(...)
}
Hey everyone. This code gives me the following error : 'batleft.Bat::shape' does not have class type. Same with the right one. I tried setting the size in the declaration but it gives me even more errors ( expected ')' before numeric constant / expected ';' at end of member decalaration / expected unqualified-id before numeric constant ).