Skip to main content
1 of 2
Eric Nilsson
  • 101
  • 1
  • 2
  • 4

Now i know how to do it:)

in spritebatch.Begin you type:

spriteBatch.Begin(SpriteSortMode.Texture, null,null,null,null,null, Matrix.CreateTranslatio(X,Y,0));

Since it is a 2d game i'm working on the Z axel is 0.

X and Y are were you want your camera to be, so for my example i can type: Player_position.X - drawOfSet,Player_position.Y - drawOfSet.

But thanks for the help anyway

Eric Nilsson
  • 101
  • 1
  • 2
  • 4