Hi there.
I have been trying to see how this[COLOR=Red] splat effect animation [/COLOR]from some sort of “paintball game” works. I think this is using an open-source APE(Actionscript Physics Engine).Actually, I guess it’s the one from cove.org
This is the game : The splatter can be seen in the main menu, or when playing.
There is a class named “Floor” which is used in the menu of the game, where random splat shots start appearing in the background. I am trying to figure out how it works.
This is the class code: I think everythig related to the splats is in there, but still don’t see which functions make the whole animation.
The key must be in functions: “generateSplatter”,“createSplotch”,“generateSplotch”,“generateSplatterHd”,“addSplatterHd”,“addColor”(I think this function adds color to the splatters, which is not so important right now) and that’s all with the functions.
There is an array, ThePaintSplatArray( must be an array containing a lot of particles, which are bitmaps of small circles i guess)
I’m not used to working with AS.That’s why I’m doing a deep analysis of the code to understand the way it works.
The code was way too long to put it here. SO I zipped it up. There , you will find the floor and particle(what makes the physics stuff work) .as files.
Regards