I'm using SetSpriteUV() and it seems to work on Windows but not on Android. The sprites simply don't appear.
Can anyone confirm?
[CODE]
fontImage = LoadImage("square-font.png")
for i = 0 to 9
numberSprites[i] = CreateSprite(fontImage)
SetSpriteDepth(numberSprites[i], 9)
SetSpritePosition(numberSprites[i], (i * 22), 100)
next i
SetNumberUV(numberSprites[0], 0, 33, 29, 33)
SetNumberUV(numberSprites[1], 29, 33, 19, 33)
SetNumberUV(numberSprites[2], 48, 33, 29, 33)
SetNumberUV(numberSprites[3], 77, 33, 29, 33)
SetNumberUV(numberSprites[4], 106, 33, 29, 33)
SetNumberUV(numberSprites[5], 135, 33, 29, 33)
SetNumberUV(numberSprites[6], 164, 33, 29, 33)
SetNumberUV(numberSprites[7], 193, 33, 29, 33)
SetNumberUV(numberSprites[8], 220, 33, 29, 33)
SetNumberUV(numberSprites[9], 249, 33, 29, 33)
do
Sync()
loop
function SetNumberUV(spriteID, x#, y#, width#, height#)
sw = width#
sh = height#
x# = x# / 452.0
y# = y# / 198.0
width# = width# / 452.0
height# = height# / 198.0
SetSpriteUV(spriteID, x#, y#, x#, y# + height#, x# + width#, y#, x# + width#, y# + height#)
SetSpriteSize(spriteID, sw, sh)
endfunction
[/CODE]
Hi. I am a real person (not a bot). I appreciate all replies and advice.