I am getting this error at what seem to be random places in my program, and cannot fix it
I figured out these places by erasing things or copying and pasting the program, into a different tab, and every time it wound up in a different place.
It is marked by (HERE)
code example:
Graphics 340,260,34,2
SeedRnd MilliSecs()
plx=170
ply=130
pldir$="up"
playerup=LoadAnimImage("game\player.bmp")
playerright=RotateImage playerup(HERE),90
playerdown=RotateImage playerright,90
playerleft=RotateImage playerdown,90
While Not KeyDown(1)
DrawImage player,plx,ply
If pldir$="up" Then
ply=ply-6
ElseIf pldir$="right" Then
plx=plx+6
ElseIf pldir$="down" Then
ply=ply+6
EndIf
Delay 60
Flip
Wend(HERE)
(HERE)
END CODE EXAMPLE.
I figured out these places by erasing things or copying and pasting the program, into a different tab, and every time it wound up in a different place.
It is marked by (HERE)
code example:
Graphics 340,260,34,2
SeedRnd MilliSecs()
plx=170
ply=130
pldir$="up"
playerup=LoadAnimImage("game\player.bmp")
playerright=RotateImage playerup(HERE),90
playerdown=RotateImage playerright,90
playerleft=RotateImage playerdown,90
While Not KeyDown(1)
DrawImage player,plx,ply
If pldir$="up" Then
ply=ply-6
ElseIf pldir$="right" Then
plx=plx+6
ElseIf pldir$="down" Then
ply=ply+6
EndIf
Delay 60
Flip
Wend(HERE)
(HERE)
END CODE EXAMPLE.