Hello and welcome to our community! Is this your first visit?
Register
Results 1 to 3 of 3
  1. #1
    Enthusiast
    Join Date
    Oct 2005
    Location
    Bill Clinton’s Closet? Avatar: NOT A PENIS!
    Posts
    1,635

    Action scripting experts needed (close to expert)

    I am making a game click here for a preview. I need some good actionscripters to help me out with it. I need so that when you click a bullet comes out of the gun (or a line) and it has to have a interveral of 0.7 seconds.

    I also need the random walking enemy to walk twards' me and slowly kill me.

    I also need my health to go down when he hits me (still have to make a attacking scene)

    I also want so that overtime (1 minute interverals) a nother enemy is added and for every kill 50 points is added to my score.

    I'll edit my post if there is anything else I need.

    If you want the fla. to take a look over just tell me and i'll gladly make it open source ... (not that anyone would want to steal it)

    This is my new edit color, do not take it #A89737
    Feel Free to PM if you need help or if you want to talk to the sexiest member on DD *wink*
    ^^^Clickable link to PM me^^^

  2. #2
    Veteran Enthusiast LeadingManNigel's Avatar


    Join Date
    May 2005
    Location
    New York City
    Posts
    6,213
    Heres some Ai script:
    http://www.tutorialized.com/tutorial/Ar ... e-AI/11769

    Heres a random enymy script:
    Code:
    onClipEvent (load) {
    
     
    
     function reset(){
    
            this._x=600;
    
            this._y=random(200)+100;
    
            enemySpeed=random(4)+1;
    
     
    
     }
    
     
    
     reset();
    
     
    
    }
    Heres a moving enemy script.
    Code:
      if (//If function goes here){
    
                this._x-=enemySpeed+_root.MC Here.Speed varible;
    
      } else {
    
                this._x-=enemySpeed;
    
      }
    
     
    
     
    
      if (this._x<-10) {
    
                reset();
    
      }
    
     
    
    }
    Can I see your game Id love to look at the script.

  3. #3
    Enthusiast
    Join Date
    Oct 2005
    Location
    Bill Clinton’s Closet? Avatar: NOT A PENIS!
    Posts
    1,635
    K well for the enemy I have zilch so no movement for him

    for the rotating arm I have
    Code:
    onClipEvent (enterFrame) { 
    myRadians = Math.atan2(_root._ymouse-this._y, _root._xmouse-this._x); 
    myDegrees = Math.round((myRadians*180/Math.PI)); 
    _root.yChange = Math.round(_root._ymouse-this._y); 
    _root.xChange = Math.round(_root._xmouse-this._x); 
    _root.yMove = Math.round(_root.yChange/20); 
    _root.xMove = Math.round(_root.xChange/20); 
    this._rotation = myDegrees+180; 
    }
    For the health I have Zilch also and thats all the code I have.[/code]

    This is my new edit color, do not take it #A89737
    Feel Free to PM if you need help or if you want to talk to the sexiest member on DD *wink*
    ^^^Clickable link to PM me^^^


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •