open box animation

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
appsurd
Posts: 10
Joined: Wed Sep 29, 2010 7:50 pm

open box animation

Post by appsurd » Thu Sep 30, 2010 2:59 pm

Hi Guys!

I am looking to create an animation that features a box opening. In your opinion what would be the best way to create this (which format)?

Thanks.

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: open box animation

Post by Klaus » Thu Sep 30, 2010 3:05 pm

Hi appsurd,

hmmm, I would:
1. Create a (QuickTime) movie, maybe in a 3D app
2. Create an animated GIF, which will look lousy eventually 8)
3. Create a series of nice PNG images and show them one after anohter by setting the icon of a button

You get the picture.


Best

Klaus

appsurd
Posts: 10
Joined: Wed Sep 29, 2010 7:50 pm

Re: open box animation

Post by appsurd » Thu Sep 30, 2010 3:16 pm

Hi Klaus,

Thanks for your reply. I guess quicktime will probably be the best quality option, right?

Also, is it possible for me to import an image and use it as a button?

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: open box animation

Post by Klaus » Thu Sep 30, 2010 3:41 pm

Hi appsurd,
appsurd wrote:Hi Klaus,
Thanks for your reply. I guess quicktime will probably be the best quality option, right?
Yep, but will require QucikTIme to be installed on the traget machine(s), which might be a problem on Windows
since this is not installed by default!
appsurd wrote:Also, is it possible for me to import an image and use it as a button?
Yes, create the image (imported or referenced) and note its ID (in the ispector).
Then create a button and set its ICON (in the inspector or via script) to the ID of the previously imported image!

Hint:
Although we are used to associate the term ICON with a tiny image, there is actually no size restriction
for using images as icons in buttons!


Best

Klaus

appsurd
Posts: 10
Joined: Wed Sep 29, 2010 7:50 pm

Re: open box animation

Post by appsurd » Thu Sep 30, 2010 3:50 pm

Klaus wrote:Yep, but will require QucikTIme to be installed on the traget machine(s), which might be a problem on Windows
since this is not installed by default!
This is not a problem. I am creating an app for the iPhone/iPad which I believe comes with Quicktime installed by default?
klaus wrote:Yes, create the image (imported or referenced) and note its ID (in the ispector).
Then create a button and set its ICON (in the inspector or via script) to the ID of the previously imported image!
Sorry for the newbie question, but how would I import an image?

Thanks for your help :)

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: open box animation

Post by Klaus » Thu Sep 30, 2010 3:59 pm

Hi appsurd,

yes, I think any iThingie can play QT compatible formats!

Images:
1. Referenced = image located OUTSIDE of the stack
Create an image (drag from the Tools palette) and set its filename via the Inspector (the folder icon -> "Basic Porperties")

2. Imported = a copy of the image will be INSIDE of the stack, might be better in your case:
Use menu "File" -> "Import as control" -> "Image file..."


Best

Klaus

appsurd
Posts: 10
Joined: Wed Sep 29, 2010 7:50 pm

Re: open box animation

Post by appsurd » Thu Sep 30, 2010 4:40 pm

Superb, I have managed to import my image as a button. Now, my final question is: once I have made my Quicktime movie, how do I get it to work on mouseUp?

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: open box animation

Post by Klaus » Thu Sep 30, 2010 4:50 pm

Hi appsurd,

you said the app is for an iXXX so you should look into the docs for RevMobile,
since it uses different commands for playing sound and video than a "normal" Rev stack for a desktop application!


Best

Klaus

appsurd
Posts: 10
Joined: Wed Sep 29, 2010 7:50 pm

Re: open box animation

Post by appsurd » Thu Sep 30, 2010 4:57 pm

Hi Klaus,

Ok, you got me a little worried now that I am not using the right application. I am using Livecode 4.5. I believe this is compatible to build iPhone/iPad apps, right?

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: open box animation

Post by Klaus » Thu Sep 30, 2010 5:01 pm

Hi appsurd,

you need this version/module/addition to make apps for iDevices:
http://www.runrev.com/products/mobile-d ... -features/

And the syntax is a bit different!
I do not have this module, so I can't help you much I'm afraid.

See the Rev Store for prices. Yep, this requres extra fees!


Best

Klaus

appsurd
Posts: 10
Joined: Wed Sep 29, 2010 7:50 pm

Re: open box animation

Post by appsurd » Thu Sep 30, 2010 5:13 pm

Where can I download the mobile module from?

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: open box animation

Post by Klaus » Thu Sep 30, 2010 5:19 pm

There is no demo version (it is still in alpha state), you have to actually buy it in the Rev store!

Don't shoot the messenger, thanks 8)

Post Reply