i have a bouncing ball, and i tried to make so when it bounces once, the speed gets higher.
In my ball class, i have a float speed;
float speed;
and i initialize
Does the speed needs to be float? If not you could make
speed
float
int speed;
Or use a explicit cast
if (movingUp) { ballRect.Y -= (int)speed; }// No Error