Search Unity

MeleeWeaponTrail

Discussion in 'Made With Unity' started by AnomalusUndrdog, Aug 9, 2011.

  1. AnomalusUndrdog

    AnomalusUndrdog

    Joined:
    Jul 3, 2009
    Posts:
    1,553
  2. Ben-Massey

    Ben-Massey

    Joined:
    Jun 13, 2011
    Posts:
    581
    It seems your helper script doesn't pick up crossfades, is there a way around this?
     
    Last edited: Aug 10, 2011
  3. 95KillerZ95

    95KillerZ95

    Joined:
    May 27, 2011
    Posts:
    253
    Thanks for sharing this :)
     
  4. zine92

    zine92

    Joined:
    Nov 13, 2010
    Posts:
    1,347
    Cool. Thanks for the share. :D
     
  5. AnomalusUndrdog

    AnomalusUndrdog

    Joined:
    Jul 3, 2009
    Posts:
    1,553
    Submitted to the Asset store for easier access!



    @Ben4views: Yeah, its a simple script that detects only one animation to get you started, should be easy to make it detect multiple animations. You'd need to have variables for all of the start and end frames for each animation when you want the trail to appear. I suggest you make a class that holds that information and put it in a generic list or array, then have Update check each animation if its playing and check the start and end values so it knows when to turn on/off the trail.
     
  6. crafTDev

    crafTDev

    Joined:
    Nov 5, 2008
    Posts:
    1,820
    Cool!! Been waitin for something like this! Is it iOS friendly?
     
  7. Rush-Rage-Games

    Rush-Rage-Games

    Joined:
    Sep 9, 2010
    Posts:
    1,997
  8. zine92

    zine92

    Joined:
    Nov 13, 2010
    Posts:
    1,347
    As long as it isn't 100 over characters swinging their swords and having their animation played at the same time, i don't think there's any overhead for using this. :D
     
  9. janpec

    janpec

    Joined:
    Jul 16, 2010
    Posts:
    3,520
    Interesting i have just been looking at this with Chivarly: Modern warfare on UDK. Its the same function but in different engine,
     
  10. crafTDev

    crafTDev

    Joined:
    Nov 5, 2008
    Posts:
    1,820
    Cool script, but how does the helper script work with start and end frame setups? The emit never seems to be true even when playing the animation...
     
  11. gore23

    gore23

    Joined:
    Jan 18, 2011
    Posts:
    324
  12. crafTDev

    crafTDev

    Joined:
    Nov 5, 2008
    Posts:
    1,820
  13. AnomalusUndrdog

    AnomalusUndrdog

    Joined:
    Jul 3, 2009
    Posts:
    1,553
  14. crafTDev

    crafTDev

    Joined:
    Nov 5, 2008
    Posts:
    1,820
    So I had to figure out a different way on controlling emition but my problem now is that the trail never seems to follow the weapon smoothly sometimes...its never the same...for eg, my weapon moves in a curve but sometimes the trail makes a diagonal line?

    It would also be great if you explain the benefits of modifying options like min vertex distance etc...

    Thanks
     
    Last edited: Sep 8, 2011
  15. Rilem

    Rilem

    Joined:
    Aug 31, 2011
    Posts:
    70
    This looks amazing! Thanks for sharing. :D
     
  16. crafTDev

    crafTDev

    Joined:
    Nov 5, 2008
    Posts:
    1,820
    So has anyone found the options to use to get a trail effect as smooth as this?

     
  17. AnomalusUndrdog

    AnomalusUndrdog

    Joined:
    Jul 3, 2009
    Posts:
    1,553
    Would like to see a screenshot of the problem so I can think about it more.
     
  18. CQLYU

    CQLYU

    Joined:
    Jul 29, 2019
    Posts:
    2
    How to set the tail of the knife light to be sharp?
     
  19. CQLYU

    CQLYU

    Joined:
    Jul 29, 2019
    Posts:
    2
    Is it necessary to draw a map?