How do I add different animations to an array with a loop

Get help using Construct 2

Post » Sat Jun 20, 2015 10:45 pm

Instead of manually setting each animation to different X elements in an array on the start of layout, how could I do this with a for loop?
B
5
Posts: 10
Reputation: 269

Post » Sun Jun 21, 2015 1:12 am

Set the array size to the number of frames you want to add and then use the "For Each Element" event with the axes set to X. Now you have two options: Use Array.CurrentElement to add the correct frame, or use the "Compare Current Element" event inside of the loop created above.
B
7
S
2
Posts: 38
Reputation: 553

Post » Sun Jun 21, 2015 1:12 am

Or import animations in the image/animation editor, which is a lot easier, unless you need the array for a special reason.
B
7
S
2
Posts: 38
Reputation: 553


Return to How do I....?

Who is online

Users browsing this forum: tarek2 and 14 guests