Example:
Retardo=5000
Hojadeanimacion =
{
width = 76,
height = 76,
numFrames = 270,
sheetContentWidth = 760,
sheetContentHeight = 2052
}
Secuenciaexplosionroja = graphics.newImageSheet( “Secuenciabombaroja.png”, Hojadeanimacion )
sequenceData =
{
name=“Bombaroja”,
start=1,
count=270,
time=Retardo,
loopCount = 1,
loopDirection = “forward”,
}
Animar = display.newSprite(Secuenciaexplosionroja, sequenceData )
Animar.x = 330
Animar.y = 200
Retardo=10000 (Don’t work)
Once the sprite sheet has been declared, the sequence and the location of the animation, in what way do I access the variable "Time"to change its value?
I have tried assigning another variable and replacing the number. But it does not work. It’s like the initial value can not be changed. I have looked in the help and I could not find an example of how to change the value.
The animation works wonders but I can not change the TIme value once the sequence is declared.