TIB: Re: Domain error


[Prev][Next][Index][Thread]

TIB: Re: Domain error




>I am working on a game. I am trying to get characters to randomly scroll
down the screen. This should work but i get a domain error everytime i run
it. Can any one see any problems in my code?
>
>
>8/->/x
>Lbl B
>IF x==8:Goto A
>(x+1)/->/x
>Outpt(x,y,"x")  <- i get the error right here
>Outpt(x-1,y," ")
>Goto B
>Lbl C
>(rand*20)/->/y
>If y>7 and y<21
>Then:Goto B
>Else:Goto C
>

All of this will work if you put a 1/->/X after Lbl C

As you had it, it was trying to output onto line 9 which gave you the error.

Matthew