Is there any help or tutorials out there that can assist me? I'm converting an existing Flash project into HTML5, and one of the things I have run into is converting a 24 frames/second movie into a setInterval-based script.
I worked out that 24 frames per second is equal to 1 frame every 41.666... milliseconds, so I set my setInterval time to 42.
For every animated element, I have used 'if' statements to start them up... like if the element appeared in frame 108, for example, it gets its own 'if currentFrame >= 108' statement to exist in.
This method seems like it would get overwhelmingly complicated, does anyone have a better way?