[behavior] Animation List

Post your completed addons to share with the community

Post » Mon Jan 12, 2015 4:25 am

Animation List
expressions:
  • animationCount - return the number of animations the object has.
  • animationName(int) - return the animation name at the given index.
  • animationIndex(string) - return the index of the animation with the name.
I was a bit surprised that this sort of thing wasn't already implemented into the sprite plugin, but since it is pretty simple I created my own behavior to do it. I felt like sharing it in-case anyone needs this feature.
You do not have the required permissions to view the files attached to this post.
B
48
S
23
G
66
Posts: 1,144
Reputation: 39,059

Post » Mon Jan 12, 2015 6:33 am

Updated the behavior!
realized that it needed another expression that returns the index for the animation name you pass to it.
B
48
S
23
G
66
Posts: 1,144
Reputation: 39,059

Post » Tue Jan 13, 2015 8:14 pm

@Prominent Thank you 😉
B
12
S
1
Posts: 84
Reputation: 1,487

Post » Tue Jan 13, 2015 8:15 pm

@Prominent Thank you 😉
B
12
S
1
Posts: 84
Reputation: 1,487


Post » Fri Jun 23, 2017 6:12 am

Muchas gracias!
B
12
S
3
Posts: 7
Reputation: 840

Post » Tue Sep 26, 2017 4:58 am

animationFrameCount(int)? where int is the index of the animation?
B
28
S
10
G
1
Posts: 24
Reputation: 2,266


Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest