Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (i=0; i < _root.Enemies.length; i++) {
- curEnemy = _root.Enemies[i];
- if(this.hitTest(_root.curEnemy)){
- unloadMovie(this);
- trace("hit")
- _root.curEnemy.health -= 10;
- trace("Enemy health is now " + _root.curEnemy.health)
- if(_root.curEnemy.health <= 0){
- unloadMovie(_root.curEnemy);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement