Frame Animation Method (repeat of subjectless message)

Scott Rossi scott at tactilemedia.com
Sun Apr 6 13:15:27 EDT 2008


Recently, Mark Greenberg wrote:

> My students are animating three characters on a card by hiding and
> showing .png images against a background.  Each character has a dozen
> moves or so, and each move has between 5 and ten frames.  Each figure
> is approximately 400 x 600 pixels in size.  My question is which
> would be faster, having the frames be separate image objects and
> using hide/show; or having just three image objects that draw their
> contents from images on another card with a repeat loop and something
> like...
> 
> Put image "p1punch" & frameNo of Card 2 into image "Player1Main"?


IMO, hide/show (2 actions) will not be as fast as using a single object (one
action) to display the animation.

As a test option, you might want to try using a borderless button as the
display object and setting its icon to the frame images:

  set icon of btn "player1main" to id of img ("p1punch" & frameNo)

Regardless, 400x600 is a somewhat large image size for Revolution and you
will likely face some speed limitations getting these to display quickly.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design





More information about the use-livecode mailing list