This content has been marked as final. Show 5 replies
ya you have to use
random function with last frame no.
and then you have to jucp to directly that frame.
maxNoFrame = 40;
wish this is helpful to you.
Cheers....how do I stop this from including the first frame?
sorry i can't get your point
Math.random() returns a value between 0 - 1
So, if you have 20 frames..
Math.random() * 20 will return a value between 0 to 20. and if you want to exclude frame 1 then
Math.random()*19 + 1 will return a value between 1 - 20
no need to use "Math" ahead of random then it work...