Traté de sacar parte del código de la parte que a veces suele fallar en xCode. No está el código entero. No se si va a servir de mucho.
opciones =
{
width = 293,
height = 293,
numFrames = 93,
sheetContentWidth = 2930,
sheetContentHeight = 2930,
}
Borremos = graphics.newImageSheet( “Borrasecuencia.png", opciones )
sequenceData3 =
{
name=“Borra”,
start=1,
count=93,
time=3500,
loopCount = 1,
loopDirection = “forward”,
}
instance1 = display.newSprite(Borremos, sequenceData3 )
instance1.x= 326
instance1.y= 350
instance1:setSequence(“Borra)
instance1:play()
function spriteListener( event )
– Si son 3 dígitos
if DigitosC==3 then
if (instance1.frame==35) then
respuesta.text= “”
C=tostring( C )
C = (C:sub(2))
respuesta.text=C
end
if (instance1.frame==39) then
respuesta.text= “”
C=tostring( C )
C = (C:sub(2))
respuesta.text=C
end
if (instance1.frame==43) then
respuesta.text= “”
C=tostring( C )
C = (C:sub(2))
respuesta.text=C