read array

Blitz3D Forums/Blitz3D Programming/read array

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You just reference it. Eg:

If ova(x,y)=1 then DrawImage image,x,y


or whatever.

By the way, just flicking through your code, I can see that you're not always going to place exactly thirty 1's in the array of zeroes. You're not checking to see if there is already a one in the slot before making it one. In some cases, you will store a 1 there, then come back and make it one again, and you'll have only 29 on screen.