XNA spritebatch.drawstring() [RESOLVED]
Hi,
I can't get my text drawn on the screen. My code gives a few errors.
http://msdn.microsoft.com/en-us/library/ff433981.aspx
Code:
SBatch.Begin()
SBatch.DrawString(GameFont, "X:" & P(MyIndex).X, New Vector2(10, 10), Color.Red)
SBatch.End()
Code:
Public GameFont As SpriteFont
Code:
GameFont = OurContent.Content.Load(SpriteFont)("")
can someone help me a bit more to get my text drawn?
nevermind, got it:
Code:
GameFont = OurContent.Content.Load(Of SpriteFont)("Fonts\Normal")