How do I change a set of animations being played

Get help using Construct 2

Post » Sun Jan 29, 2017 10:03 pm

Hello

I'm currently making a platformer game and one of its features is that, when you pick up an specific item your costume changes of color.

Right now my animations are being called by, IE: Player_Base - [Platform is moving] \ Player_Mask - [set animation to: "Run_" & Player_Mask.aimDirection]
My animation name in this case would be (Run_"aiming direction")

Now I'm thinking of renaming my animations to (BlueSuit_Run_"aiming direction") , (RedSuit_Run_"aiming direction") , (GreenSuit_Run_"aiming direction")

But I dont know how to call the animations for those specific set of names

Thanks id advance
B
9
S
2
Posts: 2
Reputation: 529

Post » Mon Jan 30, 2017 12:14 am

Done with a variable, you pick the item and you set the variable on the player or globally, i.e. blue=1, red=2, green=3.
Then its Player_Base - Platform is moving
condition: if variable=1 play animation bluesuit_run, if variable=2 play animation redsuit_run etc
B
46
S
15
G
73
Posts: 2,026
Reputation: 43,459

Post » Mon Jan 30, 2017 3:04 am

plinkie wrote:Done with a variable, you pick the item and you set the variable on the player or globally, i.e. blue=1, red=2, green=3.
Then its Player_Base - Platform is moving
condition: if variable=1 play animation bluesuit_run, if variable=2 play animation redsuit_run etc



Awesome, thanks man
B
9
S
2
Posts: 2
Reputation: 529


Return to How do I....?

Who is online

Users browsing this forum: Sparkz and 1 guest