Ahggg please help me
Blitz3D Forums/Blitz3D Beginners Area/Ahggg please help me
| ||
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 |
| ||
Probably need to post more code. You've got a couple of GoSubs in there, but the subroutine code isn't shown above. |
| ||
I know the thing is there are no gisubs between those 2 pieces of code, the only thing that occured to me was perhaps a while had got messed up and the wend was sending it to the wrong place but thats not the case as ive done a line by line flow test between the 2 texts there is literally only a flip and the wend so its absolutly beyond me how it can change the gosubs call masive sections of code running window libaries i wrote but as ive pointed out there not called between the 2 texts |
| ||
apart from this gosub, you mean? Gosub win_draw |
| ||
Blitz coder's moving to a dedicated server and should be back soon. |
| ||
What is While KeyDown(0)=False supposed to be? As far as my docs show, the lowest scancode is 1, the Escape key. As far as the docs show, there is no scancode 0. |
| ||
where do you give that variable its value?? |