A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Sword Glow like in ghostfight

  1. #1
    Junior Member
    Join Date
    Jul 2008
    Posts
    19

    Sword Glow like in ghostfight

    The attached image was take from the flash movie Ghost Fight by justsolo.

    http://www.newgrounds.com/portal/view/430990


    Ive been trying to figure out just how the sword glows were done, i know they were made in actionscript but not sure how it was coded.

    Im making a flash swordfighting game and i would just love to incorporate this effect. Im not keen on creating graphic effects that look like this. A script would make my life much easier. If anyone can help, thank you so much!
    Attached Images Attached Images

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Start with using the GlowFilter class. You will find it in the AS3 language references.
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Junior Member
    Join Date
    Jul 2008
    Posts
    19
    =] thx! for reply!

    I think i know how to do it now, this is from newgrounds posted by vexagon


    give the sword you want to glow the instance name "sword"

    import flash.filters.GlowFilter;
    var swordglow:GlowFilter=new GlowFilter(color, alpha, blurX, blurY, strength, quality, inner, knockout);
    sword.filters=[gf];

    change color, alpha, blurX, blurY, strength and quality to numbers, ofcourse color is "0x" + hexidecimal number, and inner and knockout are boolean (true/false)

    a sample for a red glow:

    import flash.filters.GlowFilter;
    var swordglow:GlowFilter=new GlowFilter(0xFF0000, 100, 10, 10, 2, 3, true, false);
    sword.filters=[gf];

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center