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
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()
effectContainer.getNextHighestDepth()
ok il try that. thanks for your help and time ^^
You must be logged in to post a comment.
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