A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: game coming up but need some help!

  1. #1
    Member
    Join Date
    Sep 2005
    Posts
    56

    game coming up but need some help!

    OK I have making a game when you are a guy that jumps in to a jungel,
    there you fight montrers.
    1.But one of the monsters(have only made 2 yet) just dies when he has walked a bit.How do I fix this????(I have tried to fix it hundreds of times thats
    the reason for that I only have made 2)
    2.When you walk to something and tuch it how do I make so you go to a frame then???
    I was using this code: onClipEvent (enterFrame) {
    if (this.hitTest(_root.ENEMY)) {
    gotoAndPlay(gameover);

    }
    }

  2. #2
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,223
    Try:

    onClipEvent (enterFrame) {
    if (this.hitTest(_root.ENEMY)) {
    _root.gotoAndPlay("gameover");
    }
    }

  3. #3
    Member
    Join Date
    Sep 2005
    Posts
    56
    thanks man LOL LOL

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