Skip to main content
added 4 characters in body
Source Link
Ismail
  • 99
  • 1
  • 8

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.

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 - 15 fps Attack - 3 fps

How can I create this with requestAnimationFrame and not using set timeout or setinterval.

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 - 15 fps

Attack - 3 fps

How can I create this with requestAnimationFrame and not using set timeout or setinterval.

Source Link
Ismail
  • 99
  • 1
  • 8

HTML5 - multiple animations, different fps

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 - 15 fps Attack - 3 fps

How can I create this with requestAnimationFrame and not using set timeout or setinterval.