Shield Anaimation Help

This forum is currently in read-only mode.
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • Hold a Mouse button to move.

    I got my shield to flash when it bumps a wall but want it to flash longer more like an electrical BUZZ!

    I doubled the animation objects 2,3,4 are the same as 4,5,6 which may not be necessary, but it was an attempt in making the animation run longer.

    Can anyone help me lengthen the shield flash when the ship bumps a wall?

    Capfile made with v99.83

    http://www.box.net/shared/oos0850r32

  • I think I found what might be the direct problem - the condition is only present on collision. Set it to run a few ticks after as well, perhaps?

  • I think I found what might be the direct problem - the condition is only present on collision. Set it to run a few ticks after as well, perhaps?

    Any suggestions on how to do that?

  • You have plenty of frames of animation for that shield effect - you might just make it a separate animation call it "impact" or something and then set your collision event to start that animation. Then add another event for Animation over and set it back to the normal one. Hopefully that made some sense

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Somebody has a point. A good point.

    Separate the frames of the shield into another animation and set it to run on collision. Then check if the animation is running and then to end once before setting it back.

    Should work.

    EDIT: I checked it out.

    I found the general error, which was kinda stupid - you have Always Condition with Action Set Frame to 1. It doesn't let the animation run as it was. Try start of layout, rather than always.

  • You have plenty of frames of animation for that shield effect - you might just make it a separate animation call it "impact" or something and then set your collision event to start that animation. Then add another event for Animation over and set it back to the normal one. Hopefully that made some sense

    The separate animation did it. But instead of making another event to stop it I simply added a blank animation at the end. Works great now

  • Good to know. Will we be seeing the project posted later?

  • Good to know. Will we be seeing the project posted later?

    Sure Anaxim, but noting special. The actual shield anim is junk just to test but good enough to let me know make the real effect.

    Hope this cap helps you.

    http://www.box.net/shared/ds2j6akrtm

    Note for the actual game I added rotation to the shield because it fit the ship's contour

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