Hello,
just a quick one, how do I make my Functions recognise my types??
I've got this:
Type player
field x,y
end type
Player1.player = New player
Player1\X = centerx+gridsize
Player1\Y = (centery+gridsize) - spriteoffset
;--some lines later
If KeyDown = kleft Then
playermoveleft()
EndIf
;--further down
Function playermoveleft()
player1\x = player1\x - 1
End Function
It's saying "Variable must be a type"
What am I doing wrong now? :)
Sorry for being such a noob, and thanks again in advance for the quick responses from you pros!
just a quick one, how do I make my Functions recognise my types??
I've got this:
Type player
field x,y
end type
Player1.player = New player
Player1\X = centerx+gridsize
Player1\Y = (centery+gridsize) - spriteoffset
;--some lines later
If KeyDown = kleft Then
playermoveleft()
EndIf
;--further down
Function playermoveleft()
player1\x = player1\x - 1
End Function
It's saying "Variable must be a type"
What am I doing wrong now? :)
Sorry for being such a noob, and thanks again in advance for the quick responses from you pros!