LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

Load Sprite from an Array

Root / Programming Questions / [.]

🔒
RivRalCreated:
I remember there was a way to load sprites from a tag or an array in PTC2. How would I go about doing this? i.e.
READ array
DATA 0,0,1,1,1,1,0,0
DATA 0,1,0,0,0,0,1,0
DATA 1,0,0,0,0,0,0,1
DATA 1,0,0,0,0,0,0,1
DATA 1,0,0,0,0,0,0,1
DATA 1,0,0,0,0,0,0,1
DATA 0,1,0,0,0,0,1,0
DATA 0,0,1,1,1,1,0,0

That's weird... I thought you could do this in SB, but I'm not finding anything. I would look at erm... GLOAD: http://smilebasic.com/en/reference/#graphic I'm not sure if you can only load a part, but this way you could at least read from an array, I guess.