Problems with Sprite animation

Hi, I use 100 pictures in my app.The size of each picture is 20 kb.
I build an array to use in an spriteanimation like this:
myAnim = sprite.newAnim{ “img1.png”, “img1.png”, “img1.png”, “img1.png”, “img1.png”, “img1.png”, “img1.png”, “img1.png”,
“img2.png”, “img2.png”, “img2.png”, “img2.png”, “img2.png”, “img2.png”, “img2.png”, “img2.png”,
.
.
.
.
.
“img100.png”, “img100.png”, “img100.png”, “img100.png”, “img100.png”, “img100.png”, “img100.png”, “img100.png”}
I load each picture 8 times in row, does this take 8 times the memory aswell??

I have to do it like this otherwise the animation goes to fast or is it another way to do it?

Sorry for my basd english but I hope someone understand what I am trying to do.

Magnus

[import]uid: 5717 topic_id: 804 reply_id: 300804[/import]

Corona framework is smart enough to know that the image is already loaded and does not load it into memory again. ( Take a look at the fishies example ).

There are other ways to do it as well. What type of animation are you trying to do?

You shouldn’t have to do that in order to slow down the animation. You could put the animation on a timer event

Carlos [import]uid: 24 topic_id: 804 reply_id: 1710[/import]

I am trying to slow down the animation and haven´t figured out to do it in another way.
Is there a limit on the size of an array? { }

[import]uid: 5717 topic_id: 804 reply_id: 1715[/import]

use a timer?

timer.performWithDelay ?

C [import]uid: 24 topic_id: 804 reply_id: 1719[/import]

Please can you elaborate on who this is used with the SprinteObject:Play() as I have tried using timer.performWithDelay( 1000, myAnim:play(), 0 ) and it makes no difference so at the moment this is no use to me and I have paid my $99.

Thanks
[import]uid: 5872 topic_id: 804 reply_id: 1939[/import]

Hi oph1066@bigfoot.com

I modified the sprite.lua lib so you can set the speed of an animation. Look at the code here:

http://developer.anscamobile.com/forum/2010/04/28/spritelua-modifiction-michael-hartlef

You can set the speed of the animation now like this:

myAnim:setSpeed(0.2) – sets the animation to be updated every fith frame

Cheers
Michael [import]uid: 5712 topic_id: 804 reply_id: 1943[/import]