Here's my function:
function current_tiles(mem1,mem2,posx,posy)
wdsmall=memblock dword(mem2,0)
htsmall=memblock dword(mem2,4)
wdlarge=memblock dword(mem1,0)
htlarge=memblock dword(mem1,4)
for y=0 to htsmall-1
for x=0 to wdsmall-1
write memblock word 3,12+((x+(y*wdsmall))*2),memblock word(2,12+(((posx+x)+((posy+y)*wdlarge))*2))
next x
next y
make image from memblock 1006,3
endfunction
What it does it takes an image like this:
and takes only a part of it like this:
The only problem with it is it runs terribly slow if I repeatedly use it. Is there any way I could get this to run faster?