Alright, so I'm trying to make the old helicopter game from way back when (This one: http://www.addictinggames.com/helicopter.html)

Pretty simple to do in basic right? Well I had everything made besides the scrolling screen part and it worked perfectly like the normal game.

I looked up how I could make the scrolling screen part and found the xMax and xMin variables.

So I tried it, couldnt get it to work, played with the variables, still couldnt get it so I came here.

Here it is:

Variables List:

S = Difficulty (speed)

X = X coordinate for the pixel

Y = Y coordinate for the pixel

C = Xmin

D = Xmax

K = Key pressed

W = To skip the first pixel change part

The part I bolded is where it crashes and says "ERR: DOMAIN"

:ClrHome

:AxesOff:ClrDraw:FnOff :PlotsOff:ZStandard

:Menu("DIFFICULTY?","SLOW",1,"MEDIUM",2,"FAST",3)

:Lbl 1:1→S:Goto 50

:Lbl 2:2→S:Goto 50

:Lbl 3:3→S:Goto 50

:Lbl 50

:5→X

:25→Y

:‾100→C

:100→D

:1→W

:‾100→Ymin

:100→Ymax

:Lbl 99

:getKey→K

:C→Xmin

:D→Xmax

:If W≠1:Then

:Pxl-Change(Y,X):Pxl-Change(Y-1,X-1):Pxl-Change(Y-2,X-2):Pxl-Change(Y,X-1):Pxl-Change(Y,X-2):Pxl-Change(Y+1,X-1):Pxl-Change(Y+2,X-2):Pxl-Change(Y-1,X-2):Pxl-Change(Y+1,X-2)

:Else:W-1→W

:End

:

:If S=1:Then:X+2→X:End

:If S=2:Then:X+4→X:End

:If S=3:Then:X+6→X:End

:

:If S=1:Then:

:C+2→Xmin:D+2→Xmax:C+2→C:D+2→D

:End

:If S=2:Then:

:C+4→Xmin:D+4→Xmax:C+4→C:D+4→D

:End

:If S=3:Then

:C+6→Xmin:D+6→Xmax:C+6→C:D+6→D

:End

:If K=25:Then

:Y-3→Y

:Else

:Y+3→Y

:End

:Pxl-On(Y,X):**Pxl-On(Y-1),(X-1)**:Pxl-On(Y-2,X-2):Pxl-On(Y,X-1):Pxl-On(Y,X-2):Pxl-On(Y+1,X-1):Pxl-On(Y+2,X-2):Pxl-On(Y-1,X-2):Pxl-On(Y+1,X-2)

:

:

:Goto 99

:Lbl 45

:ClrDraw:AxesOn:FnOn

But it doesn't work, and says ERR: DOMAIN, and returns me to the first pxl-ON. Why is it not working, no matter what I do with the variables it seems like it keeps saying the same error (I know it means its plotting off the graph).

I would post my program, but I don't know how without typing it. Is there a way? I have my TI-84 linked to my computer…

Please reply here or mail me at moc.oohay|05seveb#moc.oohay|05seveb.

Thanks!