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?
Bl4ckSh33p-Soft - Custom Software and Indie Games
B
55
S
16
G
6
Posts: 727
Reputation: 9,253

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
16
G
77
Posts: 2,159
Reputation: 45,833

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. ;)
Bl4ckSh33p-Soft - Custom Software and Indie Games
B
55
S
16
G
6
Posts: 727
Reputation: 9,253


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 32 guests