On animation "" finished.

0 favourites
  • 3 posts
From the Asset Store
3 pixel charaters with over 8 animations each + animations with a gun
  • 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);

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • "punching_00" & name_of_variable

  • Kyatric like Excel?? Alright!!! xDDDD

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

    Thanks =P

    Edited: updated with the looping, perfect ^^

    dl.dropbox.com/u/47035927/sandbox/index.html

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)