Animations won't play. Help?

0 favourites
  • 11 posts
From the Asset Store
This Student Workbook uses both Construct 3 & 2 encoding. It supplies client-side & php "back-end" encoding.
  • So i am pretty new to Construct 2, i know how to animate its just i cant seem to have a death animation play when a sprite dies.

    Here are screenshots of all my events. (Remove spaces between gyazo. and com and between https:// and gyazo.

    https:// gyazo. com/99d2fd4b19a392e180788b76fb633eba

    https:// gyazo. com/d7dd615e5f616767139a3c4cc40c9b24

    https:// gyazo. com/bc533e511e02d7ef2bc7757675a23d48

    The 2 main events for animating "Cowbad" (which is the sprite who's animation isn't working on death) are here.

    https:// gyazo. com/def00113877aa58653c58307731f96a0

    https:// gyazo. com/84cb5e2af06a0f44d9d818d9186d79ba

    So what is happening is that when Cowbad's health reaches 0 or less it is supposed to play a 3 frame animation of him dying and such but when his health reaches 0 or less the animation just gets stuck on the first frame. If anyone could help me it would be very much appreciated.

  • Ok well apparently i cant post links, if you care about helping i can send you link through pm or email.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • *moved to a more appropriate section

    AstroFX

    Ok well apparently i cant post links, if you care about helping i can send you link through pm or email.

    You can bypass the posting restriction by inserting a couple of spaces in the URL, i.e.

    w(SPACE>ww.(SPACE>mywebsite,com/maygame.capx[/code:wlfcbnxf]
  • *moved to a more appropriate section

    You can bypass the posting restriction by inserting a couple of spaces in the URL, i.e.

    Thank you!

  • When the health gets to 0 or less then that event will be running every tick and it keeps restarting the animation. You should add a 'System: Trigger once' condition to that event so that it only runs one time.

  • When the health gets to 0 or less then that event will be running every tick and it keeps restarting the animation. You should add a 'System: Trigger once' condition to that event so that it only runs one time.

    I can't seem to find 'System: Trigger once'

  • > When the health gets to 0 or less then that event will be running every tick and it keeps restarting the animation. You should add a 'System: Trigger once' condition to that event so that it only runs one time.

    >

    I can't seem to find 'System: Trigger once'

    Nvm but i put it as a condition and it doesnt work still it just plays a random animation

    https:// gyazo. com/74a6fbf4cbe7a0152cc33338ab3a8387

  • Check your other events that change the animation to make sure they aren't running when the Cowbad is dead. Event 9 or 10 could be setting the animation back to default. You could add a condition there to check that health > 0.

  • You would probably get a much quicker, and more thorough response if you posted your .capx on here for us to check directly.

  • Check your other events that change the animation to make sure they aren't running when the Cowbad is dead. Event 9 or 10 could be setting the animation back to default. You could add a condition there to check that health > 0.

    Thanks alot! I got it, i just put a Health is greater or equals to 1 as another condition for event 9 and 10 and it worked! Once again thanks!

  • You would probably get a much quicker, and more thorough response if you posted your .capx on here for us to check directly.

    I fixed the issue but i will remember that for next time thanks!

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