-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to display frames in loop to animate gif in awe.js #50
Comments
You can't load a single animated texture like this. What you do is load each frame as a separate texture, then animate it as time passes. For example, if your .gif had 10 frames, you would load create 10 separate textures and load each frame into each texture. Then, if you wished to animate them at 10 fps, you check the amount of time that has passed. If 0 to 0.1 seconds has passed you display frame 0, if 0.1 to 0.2 seconds has passed you display frame 1, and so on. Any Demo is available for above solution ? |
Feel free to provide a pull request if you'd like to submit some code. Otherwise this is not a bug - this is a feature request so closing. |
NOTE: You can also use the
|
thanks for your reply |
if i have 6 image frames
for below gif
so, how can i set those frames in loop to flapping for butterfly.
Please give me any solution.
The text was updated successfully, but these errors were encountered: