LoginLogin

Need some help

Root / Programming Questions / [.]

blizordCreated:
Okay, i have a map array of 300,300 and i get an error when I press down on the dpad with this code(its a def block that gets called over and over in my while loop): DEF BG FOR Y=YS TO YE FOR X=XS TO XE BGPUT 0,X,Y,MAP[X,Y] NEXT NEXT IF BUTTON()==2 THEN BGY=BGY+1 YS=YS+1 YE=YS+24 BGOFS 0,BGX,BGY ENDIF END Then it returns back to the while loop. There is an error when I try to move the screen down. It is OUT OF RANGE on the bgput command. Ugh, what am I doing wrong...

Did you use BGSCREEN to give you enough space for it? By default, you only have a BGSCREEN of 25x15 character units which is exactly the size of the 3DS top screen, and nothing more.

Oh right, thanks.