How to make the canvas display a GIF instead of a still photo

298 views
Skip to first unread message

Ufphen

unread,
Sep 11, 2015, 10:14:34 AM9/11/15
to MIT App Inventor Forum
I finished a full cop vs robber car chase game except that the background image of the canvas the sprites are running on will not run a GIF as in it just uses the fist still image of the GIF. If there is a was to have sprites be on a animated canvas or sprites on top of video this would be very helpful.

Ghica

unread,
Sep 11, 2015, 10:31:50 AM9/11/15
to MIT App Inventor Forum
It is not possible to use an animaties gif directly. What you can do, is to make a simulation by using a clock. At each clock tick you show the next image.
Search around in this forum and elsewhere on the web and you will find several examples.
Cheers, Ghica.

Taifun

unread,
Sep 11, 2015, 3:40:35 PM9/11/15
to MIT App Inventor Forum
only the webviewer can display animated gifs
Taifun

Scott Ferguson

unread,
Sep 11, 2015, 6:47:49 PM9/11/15
to MIT App Inventor Forum
Here is an example.
---
sf
Reply all
Reply to author
Forward
0 new messages