Eric McG Posted February 18, 2016 Share Posted February 18, 2016 Hi, I'm using registerBeforeRender() to execute a function that animates a bunch of sprites that are on the screen. I'd like the function to run less frequently so that the sprite animation is slower. Is this possible? Any recommendations? A live demo can be found here: http://n0code.net/xprmnts/305/sprites.html Thanks in advance, Eric sprites.js Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 18, 2016 Share Posted February 18, 2016 Hey! I think that using setTimeout could be perfect here Eric McG 1 Quote Link to comment Share on other sites More sharing options...
Eric McG Posted February 19, 2016 Author Share Posted February 19, 2016 And right you are! Thanks David! GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.