Rick van Leeuwen

Rick van Leeuwen

  • NA
  • 37
  • 14.5k

Vector at bottom right of screen (error)

Oct 19 2011 11:18 AM
Hello,
im trying to get a picture in XNA at the bottom right edge of my screen.
i managed to get the game full screen.
my screen is 1920 by 1080, so i entered this code:

protected override void Initialize()
  {
  // TODO: Add your initialization logic here
 

  bat1Position = new Vector2(0, 0);
  bat2Position = new Vector2(1920-bat2.Width, 1080-bat2.Height);

  this.IsMouseVisible = true;
  base.Initialize();
  }

but i get this error: (i get the same error whatever i insert after the ","


can anyone help?

Thanks

Rick

Answers (11)