Flip Card Animation and Gif images

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Flip Card Animation and Gif images

Post by capellan » Sat Jan 04, 2014 9:49 am

After visiting this site: https://vine.co/
I remember a thread posted in use-livecode
mailing list and decided to create and
post a demo stack.

Look at this stack that displays:

1) an animated gif inside a background group
with the Dynamic Layer property set.
Control the Dove position using the keyboard.

2) a 20 cards flip animation that plays
when you press the mouse button
inside the photo or stack background.

go stack url "https://dl.dropboxusercontent.com/u/383 ... s.livecode"

Download the stack, follow the instructions to
1) play the card animation and
2) move the animated gif,

check the scripts and post the many ways in which
this demo could be improved. :D

Thanks in advance!

Al

capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: Flip Card Animation and Gif images

Post by capellan » Sat Jan 04, 2014 9:53 pm

After reading Scott Rossi's solution about a clogging of pending messages in the stack published before:
http://lists.runrev.com/pipermail/use-l ... 96894.html

I created a new version, where you could use sliders to control the speed and movement step of the animated gif:

go stack url "https://dl.dropboxusercontent.com/u/383 ... 2.livecode"

Al

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Flip Card Animation and Gif images

Post by jmburnod » Sat Jan 04, 2014 11:35 pm

Hi Al,

I played your first version. Congratulation, it works fine. Thanks for sharing
I noticed I can change the speed and movement step of the animated gif with some mouseclick during animation. I haven't searched yet what happend.
I had a suggest for the control of the speed and movement step of the animated gif but you have done it before i finished this post :D
I tried to get your second version but I have got an "no such card" error.

Best regards

Jean-Marc
https://alternatic.ch

capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: Flip Card Animation and Gif images

Post by capellan » Sun Jan 05, 2014 6:31 am

Hi Jean-Marc

Many Thanks for your kind words! :D
I just tested the link and works fine in this Linux computer.
Paste this link on the message box and press enter on the keyboard:

go stack url "https://dl.dropboxusercontent.com/u/383 ... 2.livecode"

Al

capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: Flip Card Animation and Gif images

Post by capellan » Sat Apr 22, 2017 5:07 am


tomBTG
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 73
Joined: Fri Nov 25, 2011 6:42 pm
Location: Kansas City

Re: Flip Card Animation and Gif images

Post by tomBTG » Mon Jun 05, 2017 7:22 pm

Very cool!
Minor suggestion: It would be more realistic if the keyboard keys QAZ caused the animation to flip facing left and EDC caused it to flip to the right. This could apply to a flying or walking character.
Tom B.

capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: Flip Card Animation and Gif images

Post by capellan » Sun Jul 23, 2017 6:39 am

Great idea! but LiveCode could not flip horizontally Gif images.
We could do this after changing this Gif image for
a sequence of PNG images.

Post Reply

Return to “Multimedia”