If F1()=1 and flag = 0
Load Bitmap "imagesHelp01.bmp",6
Get Image 6,80,600
Sprite 6, 0,0,0
Flag = 1
EndIf
If F1() = 1 AND Flag = 1
Delete Sprite 6
EndIf
If you code is used like this in your game then it wont work, this is simply because of the order of the IF statements. Whats happening is that you are loading the sprite and showing it, but straight after it is shown you delete it again because in this loop, the F1 key is pressed and the flag is set to 1 which are the 2 conditions needed for the second if statement. The best way of fixing it is to swap the order of the IF commands and also check if the user has lifted the F1 key and then going into the IF command:
` this checks that the F1 key wasnt pressed in the last loop
IF old_f1 = 0
If F1() = 1 AND Flag = 1
Delete Sprite 6
EndIf
ENDIF
If F1()=1 and flag = 0
Load Bitmap "imagesHelp01.bmp",6
Get Image 6,80,600
Sprite 6, 0,0,0
Flag = 1
EndIf
` this tells whether the f1 key is being pressed at the end of this loop
old_f1 = F1()