# Splat animation effect using APE

**URL:** <https://forum.kirupa.com/t/splat-animation-effect-using-ape/324588>\
**Category:** flash\
**Created:** [August 28, 2011, 11:32pm UTC](https://forum.kirupa.com/t/splat-animation-effect-using-ape/324588 "2011-08-28T23:32:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ermaks](https://avatars.discourse-cdn.com/v4/letter/e/278dde/32.png) [@Ermaks](https://forum.kirupa.com/u/Ermaks)\
**Post date:** [August 28, 2011, 11:32pm UTC](https://forum.kirupa.com/t/splat-animation-effect-using-ape/324588/1 "2011-08-28T23:32:15Z")

</div>

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](http://cove.org)  
This is the game : The splatter can be seen in the main menu, or when playing.

> **[Battle Paint](http://www.minijuegos.com/juego/battle-paint)**
>
> Crea tu propio arte mientras juegas, acaba con todos los enemigos de cada nivel y pinta un lienzo. Juego para uno o dos jugadores.

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
