# Please Help ComputeSpectrum and Particle System

**URL:** <https://forum.kirupa.com/t/please-help-computespectrum-and-particle-system/302697>\
**Category:** flash\
**Created:** [January 6, 2010, 4:09am UTC](https://forum.kirupa.com/t/please-help-computespectrum-and-particle-system/302697 "2010-01-06T04:09:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AS\_Newbie](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@AS\_Newbie](https://forum.kirupa.com/u/AS_Newbie)\
**Post date:** [January 6, 2010, 4:09am UTC](https://forum.kirupa.com/t/please-help-computespectrum-and-particle-system/302697/1 "2010-01-06T04:09:44Z")

</div>

I’m new to these forums and quite new to AS3, I understand it when someone explains it to me but coding from scratch I can’t do. But I’m desperate :(.

What I would like to do is a simple game, you control a character around the screen, and using computespectrum I would like objects to sprout up from the floor to the beats or amplitude of the music. I then want to be able to control the character to either collect the objects (they dissappear as you hit one) or be hurt by them, which ever creates a more entertaining game.

My first thought was to create a particle system that fires off to computespectrum, I’ve dabbled with them both seprately but I simply don’t know how to marry the two, the particle system for instance uses an array and push, and i simply type 20 in and there are always 20 particles (a particle is a movie clip called ball) on the stage, would it be possible to substitute this number for computespectrum? My second problem with this is, I do not know how I will use hitest for the collecting part of my game.

My second thought is to simply have a movie clip that gets added to the stage using computespectrum similar to the particle method but simpler.

E.g  
between this amplitutde add two mc’s…between this amplitude add 4 mc’s etc, So the higher the amplitude the more mc’s are added.

To give an idea of the type of game I’m looking to make this is a far more complicated version of what I want to acheive.

> **[Music Catch 2](https://www.newgrounds.com/portal/view/486506)**
>
> Catch all the new shapes, patterns, motions and songs!

Any help would really be appreciated, if at all possible please PM me and I welcome all replies.
