How do I get the current animation name of a sprite?

Get help using Construct 2

Post » Tue May 24, 2016 10:48 am

Hi. It seems the current animation is not available as a value anywhere. So there is no way to get the current animation name without using extra instance vars, right?
Maybe this could be added?
B
53
S
16
G
6
Posts: 718
Reputation: 9,150

Post » Tue May 24, 2016 10:50 am

"AnimationName
A string containing the name of the currently playing animation."

Could you take it from SPRITE.AnimationName?
B
8
S
2
Posts: 59
Reputation: 686

Post » Tue May 24, 2016 5:47 pm

Yep, Sprite.AnimationName is the animation that is currently playing.
B
46
S
15
G
73
Posts: 2,029
Reputation: 43,465

Post » Fri May 27, 2016 5:40 am

oops. I looked at the whole list 2 times but could not see it. Seems it was already too late when I tried to find it. Thanks. ;)
B
53
S
16
G
6
Posts: 718
Reputation: 9,150


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, DuqueKarl, Vinterstille and 2 guests