Can I sent a frame of a animated sprite to mem?
if I do a matrix to store diferent "mem" and use it to "mem2sprite"? I mean:
dim m[24*24 size][10 frames]
mem2sprite m[][frame],spritenumber
With animated sprites, it will do the complete set of frames and not a single one.
In my game, when snowing there is around 640 sprites (5x5).
On iphone4 runs at 60fps, on 3GS at 30-40 and on 3G around 10-30 (yes, very irregular)
So I try to create a 480x320 sprite and dim bk[480x320].
for each drop
bk[y*480+x]=0xffffffff
next
mem2sprite bk[],spr,480,320
This full loop has to be called each frame, and for my surprise, it is A LOT SLOWER than
for each drop
drawsprite spr,x,y
next
havent noticed any difference using alphamode -1 or alphamode 0
It would be - MEM2SPRITE is somewhat slow - its not suitable for use in a game loop.