hey
im making a game in vb 2010. but im new to 2010 so i dont know how it works (because i used 6.0 before).
I have a form, where the graphics should be drawn on. "frmMainGame"
I have a module where I want to put all Graphic things in.
so I have in my module Graphics.vb
now I have a button what calls the sub "Call DrawPlayerCoordinates()"Code:Public Sub DrawPlayerCoordinates()
G.DrawString("Map: " & GetPlayerMap(MyIndex) & vbCrLf & "X: " & GetPlayerX(MyIndex) & vbCrLf & "Y: " & GetPlayerY(MyIndex), Game.font, Brushes.Red, 15, 15)
End Sub
but now it gives an error because it don't know where to draw the string. So how do the code above know it should draw it on "frmMainGame" and not in a module what isn't possible?
