Free ActionScript

Flash AS2 & AS3 Tutorials, Game Code, Effects, Source Files & Sample Downloads

Random Blood Splatter Effect

5 Comments »

AS2 random blood splatter script. Click anywhere to add random blood splatter. You can set the amount of particles you want to add with each click. You can also change the splatter range.

Preview

Download Fla Sample

Download Fla Sample

5 Responses

Hi.
i used your bloodspatter but it gives a lot of lag do you know how to redurce the lag?

Regards

E

  • One way to optimize this is to convert all the movieclips to bitmapData. So instead of using attachMovie, you use attachBitmap.

    See example here: http://www.freeactionscript.com/2009/01/using-bitmapdata-center-bitmap-inside-movieclip/

  • ok thanks.
    and i have another question you used

    _root.getNextHighestDepth(),_root.getNextHighestDepth()

    at the enemys script but i dont want this to be at the top of all how do i get it like in the middle of everything?

    Greetings

    Reaven

  • Instead of using getNextHighestDepth(), you could use a specific depth (such as 120 or -2234).

    Another trick is to use different movieclip containers for different things;
    groundContainer
    effectContainer
    enemyContainer
    playerContaner

    then you would attach all the blood to the effects container and use getNextHighestDepth there:
    effectContainer.getNextHighestDepth()

  • ok il try that.
    thanks for your help and time ^^

    Greetings

    Reaven

  • Leave a Reply

    You must be logged in to post a comment.