iOS Image/Sprite Animation?

Geoff Canyon gcanyon at gmail.com
Thu Nov 28 20:01:50 EST 2013


Is there documentation somewhere about the format of the text property of
images? It appears to be much more compact (as you've implemented it here)
than the imageData.


On Wed, Nov 27, 2013 at 6:35 PM, Scott Rossi <scott at tactilemedia.com> wrote:

> Hi Rick
>
> I posted a basic stack that shows one way to display frame animation in a
> single image (created from multiple frames).  Execute the following in
> your message box:
>
> go url "http://dl.dropbox.com/s/nmgwv1zqzvu5hqx/framebyframe.livecode"
>
>
> You'll have to decide if you can employ a technique like this and if it
> updates fast enough on your device.  This can be layered under other
> LiveCode objects, but note that you'll likely get better performance if
> the overlaid objects do not have graphic effects applied to them.
>
> Hope this helps.
>
> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
>
>
>
>
> On 11/27/13 3:44 PM, "Rick Harrison" <harrison at all-auctions.com> wrote:
>
> >Hi Scott,
> >
> >Think “Movie Animation”.  The rect stays in the same place
> >and get  updated with new images.  The layer needs to be
> >in the background so that other things can fly across it in
> >a topmost layer.
> >
> >Thanks,
> >
> >Rick
> >
> >On Nov 27, 2013, at 5:34 PM, Scott Rossi <scott at tactilemedia.com> wrote:
> >
> >> What exactly are you trying to animate?  If you provide some details, a
> >> suggestion might be easier.
> >>
> >> If you're not already, look at the acceleratedRendering property and the
> >> layerMode of the object/s you're trying to animate.
> >>
> >> If you're replacing frames of a rectangular region, you might be able to
> >> manually update an image object using the individual frames of the
> >> animation.
> >>
> >> Regards,
> >>
> >> Scott Rossi
> >> Creative Director
> >> Tactile Media, UX/UI Design
> >>
> >>
> >>
> >>
> >> On 11/27/13 2:06 PM, "Rick Harrison" <harrison at all-auctions.com> wrote:
> >>
> >>> Hi there,
> >>>
> >>> I¹m trying to do what I at first thought to
> >>> be some simple image/sprite animations
> >>> on iOS.
> >>>
> >>> I started out with the idea of using a
> >>> Quicktime movie.  I thought maybe I¹d
> >>> use 2 or three of them.
> >>>
> >>> Turns out one can only display 1 movie
> >>> at a time in iOS, and the movie always
> >>> has to be on the top layer under iOS.
> >>> That killed that idea.  :-(
> >>>
> >>> I then thought about converting my
> >>> movie to an animated gif.  It is 240
> >>> frames, and runs very slowly.
> >>> Anyway to speed it up?
> >>>
> >>> I then looked at the custom icon type
> >>> animation, but alas icons can only be
> >>> 128 by 128 pixels.  My image needs to
> >>> be 608 by 342 pixels, so that kills that
> >>> idea.
> >>>
> >>> I looked at setting one image to the
> >>> contents of another one, but then
> >>> noticed the routine uses:
> >>> put URL VarImageName into image VarImageDisplay of card 1
> >>> which loads images from the disk which
> >>> is also too slow!
> >>>
> >>> I know I can¹t be the only one who has
> >>> run into this situation before.  What
> >>> do you more experienced animators
> >>> recommend?
> >>>
> >>> Thanks in advance!
> >>>
> >>> Rick
> >>>
> >>> _______________________________________________
> >>> use-livecode mailing list
> >>> use-livecode at lists.runrev.com
> >>> Please visit this url to subscribe, unsubscribe and manage your
> >>> subscription preferences:
> >>> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>>
> >>
> >>
> >>
> >> _______________________________________________
> >> use-livecode mailing list
> >> use-livecode at lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >>subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
> >
> >_______________________________________________
> >use-livecode mailing list
> >use-livecode at lists.runrev.com
> >Please visit this url to subscribe, unsubscribe and manage your
> >subscription preferences:
> >http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list