I keep getting this error when im trying to create a class with global variables.
class Ball {
int _w; int _h; int _x; int _y; int _xspeed; int _yspeed;
Ball(int x, int y, int h, int w, int xspeed, int yspeed) { _h = h; _w = w; _x = x; _y = y; _xspeed = xspeed; _yspeed = yspeed; }
Later on when Iam trying to contact these variables it just gives me the "The field component.x is not visible" And points to the place where iam trying to use them!