playing animation using textures

Hi guys,

i wanna play an animation using sequence of frames. i have 72 frames which i want to play in a sequence. all my images i have placed under the Resource folder with same name.
and on the scene m having a plane on which i am replacing these textures so as to look like m playing animation.
plz find my attached code for the same.but my problem is that m changing the textures in the update call which is too fast i wanna handle this accd to my convinience so as to change the frame rate which i want.

currently i am able to play the texture s but they are getting replaced on each update call and my iPhone is getting very heavy by this i awnt to achieve a good fps above 25 for the same,
any suggestions or help wit hthe code will be appreciated…

[function Update(){

if(playClicked){
count++;
plane.renderer.material.mainTexture = Resources.Load(“abc”+count);
}

}]

[/code]

this is pretty simple.

Rule while Updating anything in every frame is to make it proportional to the time frame.
count++;// do not use this

float fcount = count + time.delta * speedmult;
count = (int)fcount;

this should fix your problem.
have the speed multiplier of whatever value you want.

best way is to have, Number of Frames also in the picture and number of secs you want your anim set to run(ex: 72 frames in 2 secs).

if you do the Above, no matter what the platform is… your code will run smoothly.

this is pretty simple.

Rule while Updating anything in every frame is to make it proportional to the time frame.
count++;// do not use this

fcount = count + time.delta * speedmult;// fcount needs to be global or perm variable
int count = (int)fcount;// count is local

this should fix your problem.
have the speed multiplier of whatever value you want.

best way is to have, Number of Frames also in the picture and number of secs you want your anim set to run(ex: 72 frames in 2 secs).

if you do the Above, no matter what the platform is… your code will run smoothly.

hey thanks ajit i ll surely chk this out n let u know my result neways thanks a lot for ur help…btw ru from india…