LoginLogin

How do i stop the touch screen from counting the same block?

Root / Programming Questions / [.]

zagg2000Created:
I got the grid working, but every time i lay a block, and tap it again, it counts as another block. how do i make it only count 1 block as 1?

You could check if a block is already there before adding 1 to the counter.

See, i have it using PRINT as the grid block. could i possibly get an example?

to get data from the screen, use CHKCHR(x,y) if you want to compare it with a certain symbol, you can do IF CHR$(CHKCHR(x,y))=="A" THEN ... where "A" is whatever symbol you use for the blocks.

Thanks! also, how do you save slot 0, and 1 as the same game?

You can load a program into slot 1 using LOAD "PRG1:name",0

Thanks man! I'll need Help with AI soon, but for now, Thanks!