# Game Help(Arrays and Collision)

**URL:** <https://forum.kirupa.com/t/game-help-arrays-and-collision/277078>\
**Category:** flash\
**Created:** [December 7, 2008, 2:43pm UTC](https://forum.kirupa.com/t/game-help-arrays-and-collision/277078 "2008-12-07T14:43:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Entente](https://avatars.discourse-cdn.com/v4/letter/e/c77e96/32.png) [@Entente](https://forum.kirupa.com/u/Entente)\
**Post date:** [December 7, 2008, 2:43pm UTC](https://forum.kirupa.com/t/game-help-arrays-and-collision/277078/1 "2008-12-07T14:43:27Z")

</div>

Haven’t seen anything that forbids help topics, so here’s my problem. Any help would be greatly appreciated.  
I’m trying to get the collision to work (for five hours), I started out without the array and someone helped me out and said that arrays were needed for the enemies. So, I put the array in, now there’s a problem with “enemyarray.push(Enemy)” that outputs :

TypeError: Error #1009: Cannot access a property or method of a null object reference.  
at Game\_fla::MainTimeline/spawnEnemy()[Game \_fla.MainTimeline::frame1:27]  
at flash.utils::Timer/\_timerDispatch()  
at flash.utils::Timer/tick()

Many times.  
And many times more.

The Game: [[COLOR=#800080]http://www.trportfolio.net/upload/view\_u pload.php?id=20102[/COLOR]](http://www.trportfolio.net/upload/view_upload.php?id=20102)  
-When missles and enemies collide, they’re supposed to die.  
-Not actually what happens anymore, broken now.

Attached the file. Thanks to all those who try.
