Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Eggbird extends MovieClip{
  2.     var numbershot = 0
  3.     function onLoad(){
  4.         _x = _global.xcoords - 100;
  5.         _y = 100
  6.     }
  7.    
  8.     function onEnterFrame(){
  9.         _y = _y + 2;
  10.         if(_y > 700)
  11.     {
  12.         this.removeMovieClip();
  13.     }
  14.     if(this.hitTest(_root.CannonProjectile))
  15. {
  16.     this.removeMovieClip();
  17. }
  18.         }
  19.        
  20.        
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement