READUBYTE and Arrays

Previous topic - Next topic

spicypixel

This code fails miserably (not sure why)
Code (glbasic) Select
READUBYTE 1, TileMap[x][y]

However this is basically the same but works flawlessly.
Code (glbasic) Select
LOCAL MapData%
READUBYTE 1, MapData%
TileMap[x][y] = MapData%
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

MrTAToad

That could be because TileMap is not an integer...

spicypixel

Yup you're right thanks, was tearing my hair out :D
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.