A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: Actionscript Effect?

  1. #1
    Junior Member
    Join Date
    Jan 2008
    Location
    Lost in the Alps
    Posts
    25

    Actionscript Effect?

    I need a way so that I can mimic the effect sort of like the Ghostbusters sucking a ghost with their proton packs.

    Basically the sprite needs to stretch towards a point but with increasing speed, if that makes any sense.

    Any ideas?

  2. #2
    Senior Member
    Join Date
    Jun 2008
    Posts
    549
    try looking up 'flash particle system'.

  3. #3
    flash absorption vessel
    Join Date
    Jul 2009
    Posts
    31
    Gosh i love effects. My vote is for DisplacementMap effects on this one. Hold please....

    http://attunedesigns.com/ghostbuster-flash-effect/


    I think its clear my skills are not in ILLUSTRATION.

  4. #4
    Senior Member dudeqwerty's Avatar
    Join Date
    Mar 2005
    Location
    Bosnia
    Posts
    1,626
    I had the idea of a pinching DM filter also. Well done for being bothered to make it.
    New sig soon

  5. #5
    Junior Member
    Join Date
    Jan 2008
    Location
    Lost in the Alps
    Posts
    25
    Wow! That's exactly what I need! I'll look into the DisplacementMap, then.
    Thanks!

  6. #6
    flash absorption vessel
    Join Date
    Jul 2009
    Posts
    31
    Im always bothered.

  7. #7
    Junior Member
    Join Date
    Jan 2008
    Location
    Lost in the Alps
    Posts
    25
    May I ask how exactly you got the Displacement Map to do that?

    The tutorials I've found really only discuss things like magnifying effects.

  8. #8
    flash absorption vessel
    Join Date
    Jul 2009
    Posts
    31
    I've updated it to show the displacement map. Basically how it works is that pixels are shifted according to the x component color and y color (in this case red and green respectively). The original image is shifted by ((red channel - 128) * (scaleX of displacement map filter))/256. Its in the documentation if you want to study and experiment. Definitely worth the time, its a powerful little feature.

  9. #9
    flash absorption vessel
    Join Date
    Jul 2009
    Posts
    31
    Another method would employ drawTriangles (Flash Player 10) and more in-depth math. Great demo here: http://wonderfl.net/code/b8ec2e71553...fa2e94c8363cfc

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