A Flash Developer Resource Site

Page 4 of 4 FirstFirst 1234
Results 61 to 64 of 64

Thread: [Resolved] [Resolved] [Resolved] [Resolved] tank A I ?

  1. #61
    incredibulus-actionscriptum magnetos's Avatar
    Join Date
    May 2001
    Posts
    2,160
    sorry moogle but i am having some pc problem right now
    art th emoment i am using my brother's iam not very confortable with it and aslo i dont have flah5 on thios pc


    are you using the the sample which is on flash game studio book??


  2. #62
    Originally posted by Moogle
    how do you stop the tank when it touches a building?
    and when i make the damageground thing... how do u keep it on the bottom cuz when it duplicates the thing, it makes it on top of everything and how do u keep the size and rotation different everytime?
    I use a swapDepth action on every movieclip I create, and while planning/designing, I set swap "regions" for different level orders.

    For instance, for explosion clips i would assign the depths 90000+; for player clips, 80000-90000; etc. This way explosion clips will always appear on-top-of/in-front-of player clips. In order to do this, I add "this.swapDepth(number)" to the onClipEvent(load) for the clip. "number" being whatever depth I want them to appear.

    For shots, explosions, and other mass-duplicated clip instances that have a short lifespan, I use a counter to generate the depth number. If the counter gets higher than maximum depth I've set for that type of clip's "region", then I reset the counter.

    It's all basically the same way it's done in the book Flash Games Studio. If you don't have it, it's worth the purchase (even despite the horrid index and typesetting).

    As far as size and rotation goes, just set those (this._xscale, this._yscale, this._rotation) to a random number in the onClipEvent(load) for those clip instances also.

    Hope that helps,
    TotalMonkey!

  3. #63
    Senior Member
    Join Date
    Feb 2004
    Location
    USA
    Posts
    184
    Hey im makeing a paintball game and i need some AI do you think you guys can help me out?

  4. #64
    Junior Member
    Join Date
    Apr 2004
    Posts
    20

    link down

    hey ppl,
    this posts been real helpful to me coz im a noob at makin flash games and was havin some nasty problems with making some ai for my own little tank game. but i cant see what your game looks like coz ure links down dude!

    can ya fix it up for us?
    cheers

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center