On animation "" finished.

Get help using Construct 2

Post » Fri Nov 04, 2011 6:49 pm

Hello,

I would like to ask about the 'On animation "" finished' conditional.

What I want to do is, setup it to auto-increment a variable like this:

From:
> Is "punching" = false > Set animation to "punching_002";
>> On animation "punching_001" finished > set "punching" = true;

> On animation "punching_001" finished > Set animation to "punching_002";

> On animation "punching_002" finished > Set animation to "punching_003";

> On animation "punching_003" finished > Set animation to "punching_003" & set "punching" = false;

to
> Is "punching" = 0 > Set animation to "punching_002";
>> On animation "punching_001" finished > Set "punching" = 1;

> On animation "punching_00(punching variable number)" finished > Set animation to "punching_00(punching variable number)";
>> Set "punching" = + 1;
>> Is "punching" (>) 3 > Set "punching" = 0;

I know, this don't make much sense, but I'm about to make many repetitive poses, and I think using loops is the best way to make it.

But, I can't get a variable to replace part of the animation name inside that condition =\

Any idea?

Look the sample:
http://dl.dropbox.com/u/47035927/sandbox/index.html
Keep "Delete" pressed to see all the sequences (it's not finished and all the conditions are not setup yet);TELLES08082011-11-04 19:04:55
ImageImageImageImageImageImage
B
93
S
20
G
13
Posts: 1,215
Reputation: 18,990

Post » Fri Nov 04, 2011 7:02 pm

"punching_00" & name_of_variable
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Fri Nov 04, 2011 7:03 pm

@Kyatric like Excel?? Alright!!! xDDDD

Each day I'm loving much more this Community and C2!

Thanks =P

Edited: updated with the looping, perfect ^^

http://dl.dropbox.com/u/47035927/sandbox/index.htmlTELLES08082011-11-04 19:22:48
ImageImageImageImageImageImage
B
93
S
20
G
13
Posts: 1,215
Reputation: 18,990


Return to How do I....?

Who is online

Users browsing this forum: BACLog, Yahoo [Bot] and 19 guests