I have a class called Sprite, and ballSprite is an instance of that class. Sprite has a Vector2 property called Position.
I\'m trying to increment the Vector\'s X c
An easy alternative is this:
instead of: sprite.Position.X = 10;
use: sprite.Position = new Vector2(10, sprite.Position.Y);
instead of: sprite.Position.Y = 10;
use: sprite.Position = new Vector2(sprite.Position.X, 10);
instead of: sprite.Position.X += 10;
use: sprite.Position += new Vector2(0, 10);
instead of: sprite.Position.Y += 10;
use: sprite.Position += new Vector2(10, 0);