Author Topic: UISprite Animation - timing and frame ordering  (Read 1254 times)

pangonlinarespikey

  • Guest
UISprite Animation - timing and frame ordering
« on: September 26, 2013, 05:51:54 AM »
Hi guys,
I've made an animated sprite by attaching the UISprite Animation script which all works well and cycles through the three frames of animation.

Is there a way I can edit the cycle, so that in stead of going 01-02-03 on loops it goes 01-02-03-02 looping, without having to add a fourth image to the sequence identical to the second?

Also is there a way of making it hang on certain frames for longer, so staying on frame 01 and 03 for double the length of the other frames?

Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UISprite Animation - timing and frame ordering
« Reply #1 on: September 26, 2013, 03:47:48 PM »
UISpriteAnimation is just a tiny example of a very basic animation. I'd advise creating your own instead. Instead of specifying a prefix, just have a public string[] frames, or something similar.