Particle collision with ground


(B6ka) #1

Hi,

Is there a quick way to make the standard FP particles collide with ground and walls and possibly the player (in a platformer)? Something like [this][1] in Flixel. I would like some of the enemies to explode in pieces and the pieces remain on the ground for a while. Alternatively would it take too much resources if I make each piece a separate entity? Is there any other simple way around this? Thanks in advance for suggestions :slight_smile:

Best,

B6ka [1]: http://flixel.org/features.html


(Alex Larioza) #2

The easiest way would be to make each peice of shrapnel its own entity. The effect on performance would depend on how many pieces you spawn per explosion and how often enemies are exploding. I suggest just trying it out and seeing how well your game handles it.