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
Image
B
14
S
6
G
1
Posts: 7
Reputation: 1,564

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
53
S
21
G
94
Posts: 2,426
Reputation: 55,565

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
Image
B
14
S
6
G
1
Posts: 7
Reputation: 1,564


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests