Discussion

Timo Youtube Guide (Display 1 Error?) {SOLVED} SCROLL 1

0

tactics_pvp 2020-02-07 04:22 (Edited)

SOLVED {SCROLL 1 - not DISPLAY 1)
Answer bottom of youtube timo youtube page, very last comment.



PRE-RESOLUTION POST:
Below is the code. What am I doing wrong?

I checked the obsolete section of manual and saw display is in the manual.
The error specifically states:
Syntax Error:
Display 1,BGX,0

I get that it’s a syntactical error, I just don’t understand if it’s me?
or is it that I am using a keyword that’s obsolete from BASIC.

Code Below:

GAMEPAD 1
BG 1
BG Copy 0,0,32,32 TO 0,0


X=64
Y=64
DO
BGX=BGX+1
DISPLAY 1,BGX,0
IF UP(0) THEN Y=Y-1
IF DOWN(0) THEN Y=Y+1
IF LEFT(0) THEN X=X-1
IF RIGHT(0) THEN X=X+1
SPRITE 0,X,Y,TIMER/8 MOD 2 + 1
WAIT VBL
LOOP







#1:MAIN PALETTES
053F2F0000383400000C2410003F3C00
003F2A15003F2A15003F2A15003F2A15

#2:MAIN CHARACTERS
00000000000000000000000000000000
3820003C3030CC000010303E00000000
382000303C30CC00001030301E000000
FFFF5E040044FFFF0000A1FBFFFFFFFF
3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C
3C7E7FFFFFFFFE7C0000000000000000
100808894A2E1C1C0000000000000000

#3:MAIN BG
00001410000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000200000000
00000000000000020000000000000000
00000000000000000000000000000000
00000002000200000000000000020002
00000000000000000000000000020302
03020302000000000000030600020002
03020302030203020002000200020002
05020002000000020002000200020002
06020002000200020002000200000000
00020002000200020502000000000000
00020000030203020302000200020002
00020002000200000000000200000000
04020000000000000502000000020002
00020002000205020502050200020306
03060000030203020302030203020000
05020000000000000000030600020502
05020502000200020002000000000002
00000000000000000502000000000000
00000000000200020402000200020002
00020002000000000002000000000000
04020000000003060306000203020302
03020302030203020002030603060002
03020302030203020302030200000000
00020002000200020002001200120002
00020000000000020002000200020000
00000000000000000602060206020002
00020002001200120012001200000000
06020602060206020000000003020302
03020302030203020302030203020302
03020302030203020302030203020302
03020302


was8bit 2020-02-07 05:50

Add REM to this line...

REM DISPLAY 1,BGX,0

Then it works :)


tactics_pvp 2020-02-07 05:50

Oh wow another way?

Cool. Will do.


Log in to reply.