How do I set a variable name in the animation name?

Get help using Construct 2

Post » Fri Feb 13, 2015 8:13 pm

Hi.

Does anyone know how I can change the name of the playing animation based on a variable. For example I have an animation called "0_idle" when character 0 is selected. But can I change so the name of the animation changes to "CharacterNR_idle" instead? Can't get it to work. So if you pick character 3 the animation will then play "3_idle".

Any ideas?

naem.png
You do not have the required permissions to view the files attached to this post.
B
43
S
16
G
6
Posts: 628
Reputation: 7,687

Post » Fri Feb 13, 2015 8:18 pm

Sorry got it to work. Forgot the "&".

"idle_"&CharacterP1 was the solution!
B
43
S
16
G
6
Posts: 628
Reputation: 7,687


Return to How do I....?

Who is online

Users browsing this forum: mrline, newt and 8 guests