im kinda new to xna and c# and when i tried to debug now i get some errors that i dont know how to fix lol. heres the errors i get
this is what i wrote in:
protected
override void Draw(Microsoft.Xna.Framework.GameTime gameTime){
this.graphics.GraphicsDevice.Clear(Microsoft.Xna.Framework.Graphics.Color.Black); this.spritebatch.Begin(Microsoft.Xna.Framework.Graphics.SpriteBlendMode.AlphaBlend); this.spritebatch.Draw(this.mytexture, this.spriteposition, Microsoft.Xna.Framework.Graphics.Color.White); this.spritebatch.End(); base.Draw(gameTime);}
and heres the errors:
error 1 = Error 1 The best overloaded method match for 'Microsoft.Xna.Framework.Graphics.SpriteBatch.Draw(Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Rectangle , Microsoft.Xna.Framework.Graphics.Color)' has some invalid arguments C:\Documents and Settings\Edina Japalak\My Documents\Visual Studio 2005\Projects\first game\first game\Engine.cs 46 13 first game
Error 2 = Argument '1': cannot convert from 'first_game.engine' to 'Microsoft.Xna.Framework.Graphics.Texture2D' C:\Documents and Settings\Edina Japalak\My Documents\Visual Studio 2005\Projects\first game\first game\Engine.cs 46 35 first game
error 3 = Error 3 Argument '2': cannot convert from 'Microsoft.Xna.Framework.Graphics.Texture2D' to 'Microsoft.Xna.Framework.Vector2' C:\Documents and Settings\Edina Japalak\My Documents\Visual Studio 2005\Projects\first game\first game\Engine.cs 46 40 first game
error 4 = Error 4 Argument '3': cannot convert from 'Microsoft.Xna.Framework.Vector2' to 'Microsoft.Xna.Framework.Rectangle ' C:\Documents and Settings\Edina Japalak\My Documents\Visual Studio 2005\Projects\first game\first game\Engine.cs 46 51 first game
help if u know whats wrong plz.. ty