Play a GIF/ Image Sequence

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Noytal
Posts: 9
Joined: Sun Apr 10, 2016 6:10 pm

Play a GIF/ Image Sequence

Post by Noytal » Mon May 02, 2016 12:59 am

I have a really simple matchstick puzzle game that, when the user submits a correct answer, needs to got an animated "correct" screen. I made an image sequence/ gif in After Effects that I would like to use in LiveCode. It is just some red/ white text on a grey background that is animated a little, and I don't know how to just make an animation "play". There's about 40 frames that need to play at 24 fps. How would I do this?

guillem
Posts: 13
Joined: Tue Apr 12, 2016 7:36 pm

Re: Play a GIF/ Image Sequence

Post by guillem » Sat May 07, 2016 11:16 am

Is the repeatCount of the image set to zero? In that case the animation will be stopped. Maybe you could

Code: Select all

set the repeatCount of image tWhateverItsNameIs to -1
when the answer is correct to start animating it indefinitely, or to any positive integer to loop it just a number of times.
LC8, OSX 10.9.5 (Mavericks)

Post Reply