X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2FSDLx-Sprite-Animated.html-inc;h=1cb7575d4a2b2cf439dd8785218529a475522701;hb=285d0cd289790209bcd9d141d63fd6fce74a2ee4;hp=b1bd058dcac455d0059a3397fd2d6ee4fb537fe2;hpb=1f1aba66ccca27efdefae3c658bf3e11886a5dd0;p=sdlgit%2FSDL-Site.git diff --git a/pages/SDLx-Sprite-Animated.html-inc b/pages/SDLx-Sprite-Animated.html-inc index b1bd058..1cb7575 100644 --- a/pages/SDLx-Sprite-Animated.html-inc +++ b/pages/SDLx-Sprite-Animated.html-inc @@ -20,6 +20,8 @@
  • ticks_per_frame( $integer )
  • type()
  • type( $string )
  • +
  • set_sequences( $string => [ [ $x1, $y1 ], [ $x2, $y2 ], ... ], ... )
  • +
  • sequence( $string )
  • next()
  • previous()
  • reset()
  • @@ -184,6 +186,14 @@ the next frame during autoplay (i.e. between calls to start() and stop()).

    frame in the strip. See the type() method below for information on available looping types.

    +
    * sequences => { $string => [ [ $x1, $y1 ], [ $x2, $y2 ], ... ], ... }
    +
    +

    Uses the supplied hashref to define named sequences of frames.

    +
    +
    * sequence => $string
    +
    +

    Uses $string to set the current sequence.

    +
    @@ -261,6 +271,18 @@ to be lowercase.

    Default value is 'circular'.

    +

    set_sequences( $string => [ [ $x1, $y1 ], [ $x2, $y2 ], ... ], ... )

    +
    +

    Uses the supplied hashref to define named sequences of frames. Replaces any +previously defined sequences.

    + +
    +

    sequence( $string )

    +
    +

    Uses $string to set the current sequence. Goes to the first frame in the +sequence and resets the loop counter.

    + +

    next()

    Goes to the next frame in the strip. Calling this method will also reset