I want to create an html5 game which contains multiple sprites.
For different elements I want to create an fixed fps.
For example:
Walk - 10 fps, so 10 sprites will be shown within 1 second Run
Run - 15 fps Attack
Attack - 3 fps
How can I create this with requestAnimationFrame and not using set timeout or setinterval.