I am not a begginner and normally id post on blitzcoder but it seems to have dissapeared(anyone know whats happened)
this is driving me insain because as far as i can see there should be no problem
here is the code.change_avatar
foc=0:Gosub focus
While KeyDown(0)=False
Text 200,200, windat(0,6) ;----------------point 1
ypp=0-windat(0,6)
For v=1 To novatar
If avset>=avtype(v) Then
DrawImage avatn(v),10,ypp:
Text 10,ypp,ypp
ypp=ypp+200
End If
Next
windat(0,5)=ypp+windat(0,6)
Gosub win_draw
Color 255,0,0
Text 200,300,windat(0,6);---------------point 2
Flip
Wend
Return
now this is a simple while loop with some gunk in the middle
the problem is this
windat(0,6) at point 1 and point 2 should be the same
i can see noway that the number can be changed there it seems impossable yet at point 1 its always 0
and at point 2 its the correct number
i do not understand, can anyone work it out?
id greatly apreciate it thanks
this is driving me insain because as far as i can see there should be no problem
here is the code.change_avatar
foc=0:Gosub focus
While KeyDown(0)=False
Text 200,200, windat(0,6) ;----------------point 1
ypp=0-windat(0,6)
For v=1 To novatar
If avset>=avtype(v) Then
DrawImage avatn(v),10,ypp:
Text 10,ypp,ypp
ypp=ypp+200
End If
Next
windat(0,5)=ypp+windat(0,6)
Gosub win_draw
Color 255,0,0
Text 200,300,windat(0,6);---------------point 2
Flip
Wend
Return
now this is a simple while loop with some gunk in the middle
the problem is this
windat(0,6) at point 1 and point 2 should be the same
i can see noway that the number can be changed there it seems impossable yet at point 1 its always 0
and at point 2 its the correct number
i do not understand, can anyone work it out?
id greatly apreciate it thanks