# Help w/ game

**URL:** <https://forum.kirupa.com/t/help-w-game/16695>\
**Category:** Uncategorized\
**Created:** [March 27, 2003, 3:42pm UTC](https://forum.kirupa.com/t/help-w-game/16695 "2003-03-27T15:42:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![morse](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@morse](https://forum.kirupa.com/u/morse)\
**Post date:** [March 27, 2003, 3:42pm UTC](https://forum.kirupa.com/t/help-w-game/16695/1 "2003-03-27T15:42:21Z")

</div>

Ima trying to make a game. It’s not going well. Look, this doesnt seem to work correctly. This is on the bullet:

```auto

onClipEvent (enterFrame) {
	for (i=0; i<3; i++) {
		if (this.hitTest(_root["person"+i])) {
			gore = Math.floor(Math.random()*3);
			index++;
			trace(gore)
			trace(index)
			_root["blood"+gore].duplicateMovieClip("pile"+index, index);
			_root["pile"+index]._x = _root["person"+i]._x;
			this.removeMovieClip();
			trace("!");
		}
	}
}

```

1. It never traces “!”
2. Look what I get for the gore and the index trace:

> 1  
> 1  
> 0  
> 1  
> 2  
> 1  
> 2  
> 1  
> 2  
> 1  
> 1  
> 1  
> 0  
> 1  
> 2  
> 1  
> 2  
> 1  
> 2  
> 1  
> 2  
> 1  
> 2  
> 1  
> 0  
> 1

That really doesnt make sense!
