Random Blood Splatter Effect

Saturday, October 25th, 2008 | Effects Animated, Game Examples AS2

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


Tags: , , , , , , ,

5 Comments to Random Blood Splatter Effect

erikpro
August 22, 2009

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

Regards

E

pradvan
August 23, 2009

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/

erikpro
August 26, 2009

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

pradvan
August 27, 2009

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()

erikpro
August 27, 2009

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

Greetings

Reaven

Leave a comment

You must be logged in to post a comment.