-
scrolling maps
Hello,
Im trying to make scrolling maps for my RPG (Visual Basic 2010 XNA) game, but without succes.
Can anybody help me making scrolling maps?
this is my code so far:
Code:
Public Sub DrawMap()
For x = 0 To 100
For y = 0 To 100
SBatch.Draw(Tileset, New Rectangle(x * 32, y * 32, 32, 32), New Rectangle(0, 0, 32, 32), Color.White)
Next
Next
End Sub
but if my playerX > 30 the map won't show up because it will go of my screen. it should be something with the 'camera' position.
can anybody help please?
thanks