AS Scene export in LUA format to Corona

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
prabhatM
Posts: 6
Joined: Wed Mar 14, 2012 6:01 pm

AS Scene export in LUA format to Corona

Post by prabhatM »

Hi,

I had dabbled with AS a bit and liked the potential of creating Animated scenes.

As my current interest is in Android devices, I wonder if AS scenes can be exported as LUA files to be edited and compiled by Corona for Android devices.

Is there any possinilities ? Now that AS has physics and particles, it makes even more compelling reason to adopt AS for creating animated scenes on Android / IPAD through Corona.

A small plug-in Kwiksher.com helps setup scenes in Photoshop and then exports the files in LUA to be compiled in Corona. I was wondering if a similar work pipeline could be set up between AS and Corona.
User avatar
slowtiger
Posts: 6241
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Re: AS Scene export in LUA format to Corona

Post by slowtiger »

Have you already opened an .anme file in a text editor? Do it. It's all in there, plain text, readable for man and machine alike.
JaMike
Posts: 357
Joined: Sat Jul 16, 2011 6:36 pm

Re: AS Scene export in LUA format to Corona

Post by JaMike »

prabhatM wrote: I wonder if AS scenes can be exported as LUA files to be edited and compiled by Corona for Android devices.
I thought LUA was a scripting language, not a data format.

As far as I know, Slowtiger is right, the data you need is in the .anme file.
prabhatM
Posts: 6
Joined: Wed Mar 14, 2012 6:01 pm

Re: AS Scene export in LUA format to Corona

Post by prabhatM »

slowtiger wrote:Have you already opened an .anme file in a text editor? Do it. It's all in there, plain text, readable for man and machine alike.
Very encouraging indeed !
Can any braveheart write a script that will create a CORONA template :

1) index of scene file for corona.
2) maintain the object fidelity so that any touch to the object can trigger an animation e.g touching a flower will allow flower to bloom or a butterfly to flutter its wings and fly off on a motion path.

3) Since AS actually "renders" the scenes to animation, can it pre-render and create the automatic sprite sheets of any animation event in corona.

Now all these got to be background activities. The user only have to set 10-15 sub-animations in different timelines and click export. In corona, the user need to set the "touch events" for these animations.

Next, we can think of multiple pages story scenes.

Corona supports box2D physics engine and particles very well.

this might just open up a new market possibility for AS. For ganes and Tablet contents for IPAD and Androids.
JaMike
Posts: 357
Joined: Sat Jul 16, 2011 6:36 pm

Re: AS Scene export in LUA format to Corona

Post by JaMike »

prabhatM wrote:Can any braveheart write a script that will create a CORONA template :
I think Slowtiger's point is that you can ask the CORONA creators to import the data from the .anme file. Anime Studio is already writing out the information you need.

Because AS writes out text files, you can get ANY game engine to read its data. Cool, huh?
Post Reply