I'm a real noob to types...It always bugs when I try to use them, could you give an example how?
Also, on a different topic, when I create a loop like this
Function conv()
npc1$ = "Hello"
r1$ = "Hi"
Repeat
If (MouseY() < ((displayheight/4)*3)+((displayheight/4)*.3) + 12) And MouseY() > ((displayheight/4)*3)+((displayheight/4)*.3) Then
Color 50, 50, 245
Rect 0, ((displayheight/4)*3)+((displayheight/4)*.3), displaywidth, 12, 1
Color 255, 255, 255
EndIf
Color 0,0,0
Rect 0,0,displaywidth,displayheight/4,1
Color 0,0,0
Rect 0,(displayheight/4)*3,displaywidth,displayheight/4,1
Color 255, 255, 255
If (MouseY() < ((displayheight/4)*3)+((displayheight/4)*.3) + 12) And MouseY() > ((displayheight/4)*3)+((displayheight/4)*.3) Then
Color 50, 50, 245
Rect 0, ((displayheight/4)*3)+((displayheight/4)*.3), displaywidth, 12, 1
Color 255, 255, 255
EndIf
If (MouseY() < ((displayheight/4)*3)+((displayheight/4)*.3) + 12 +50) And MouseY() > ((displayheight/4)*3)+((displayheight/4)*.3)+50 Then
Color 50, 50, 245
Rect 0, ((displayheight/4)*3)+((displayheight/4)*.3)+50, displaywidth, 12, 1
Color 255, 255, 255
EndIf
If (MouseY() < ((displayheight/4)*3)+((displayheight/4)*.3)+12+100) And MouseY() > ((displayheight/4)*3)+((displayheight/4)*.3)+100 Then
Color 50, 50, 245
Rect 0, ((displayheight/4)*3)+((displayheight/4)*.3)+100, displaywidth, 12, 1
Color 255, 255, 255
EndIf
Text 250,100, "Hello"
Text 250,((displayheight/4)*3)+((displayheight/4)*.3), "Hi"
Text 250,((displayheight/4)*3)+((displayheight/4)*.3)+50, "How are you?"
Text 250,((displayheight/4)*3)+((displayheight/4)*.3)+100, "Goodbye"
Until KeyHit(1)
End Function
to be executed upon hitting a key, why does it just freeze up until i hit escape and not preform any of the graphic and text commands?
|