Tip:
Highlight text to annotate it
X
Hi everyone This is Don from Loqheart
In this tutorial I'm going to show you how to prepare a Flash FLA
for export into Spriteloq
Here we have a character that was created by David for
a game that we're working on
we have a bomb that walks around gets angry explodes
let's see how this guy was put together
so in our library, we have our bomber
and he's made up of a bunch of
symbols that represent each of his body parts
they were animated on the timeline using classic tweens and
keyframes
and each of the animations
was named using frame labels
so this is going to be really useful for us because setting it up this
way you can see all the animations
and we can use our "Splits by Frame Name" extension in order to split up this timeline
which will then give us
the individual clips for the animations so here we have the walk
and as you can see it is separated from
all the other animations
and the reason why we're doing this is because Spriteloq works on
individual SWFs. So each of these animations will turn into
a single sprite
animation that we will use in Corona.
We're just about ready to export all of these SWFs but we want to make sure to
ignore our
bomber character
cause he has all of our
animations on the timeline here. Instead we just want to export these individual
animations.
We do that by creating an 'ignore' folder.
and then putting
all the body parts as well as the main animation in there
and with that done we can run the 'Export Library as SWFs' command
we're going to save them to our assets folder here
and as you can see from the output
they're all exported
and ready for loading into Spriteloq
So another thing to note
while your exporting your SWFs is to make sure your project is actually an
AS3 project
Spriteloq won't
be able to load in AS2 or Actionscript 2
SWFs and it can't load in Actionscript 1 SWFs either
So as long as your FLA can be converted to AS3, then exported
We'll be able to load your SWFs into Spriteloq without any problem.