If I have a Vector2 variable, like this:
Vector2 fuellevelPosition = new Vector2(50, 750);
and I want to use that position for another object and also add 30 pixel to the X value for the position of the new object, how do I do that?
This didn't work:
Vector2 fuellevelTextPosition = new Vector2(fuellevelPosition.X + 30, fuellevelPosition.Y);
EDIT:
The code I use in the beginning of Game1.cs
Vector2 fuellevelPosition = new Vector2(50, 750);
Vector2 fuellevelTextPosition = new Vector2(fuellevelPosition.X + 30, fuellevelPosition.Y);