Ima trying to make a game. It’s not going well. Look, this doesnt seem to work correctly. This is on the bullet:
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("!");
}
}
}
- It never traces “!”
- 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!