A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Edit Boxes Help

  1. #1
    Senior Member
    Join Date
    Feb 2005
    Posts
    177

    Edit Boxes Help

    Hi,

    I am making a combat system for an rpg game. Right now I am trying to just come up with some cool examples, and I have already started one. In the example, I use edit boxes for the health for my "guy" (hes the good guy) and for "badguy" (hes the badguy). I have it so that once my goodguy touches the badguy, an animation shows of a dagger hitting the badguy and a script running every 10 frames then subtracts one from the badguys health if the dagger touches the badguy.

    I need to know how to, when my badguys health reaches 0, to make him "respawn" somewhere else with full health. This makes it so there will always be badguys.

    Take a look at my game so you can fully understand how I am building this example.

    I just dont know the code to give the badguy full health when his edit box = 0, for him to respawn somwhere else, and also to hide my animation too.

    Thanks, it's hard to explain how my system works but once you check the movie out and the layers, you will get it
    Attached Files Attached Files

  2. #2
    Senior Member
    Join Date
    Feb 2005
    Posts
    177
    I figured out how to give the badguy full health after his health reaches 0, but I dont know how to make him randomly respawn somewhere else

  3. #3
    Senior Member
    Join Date
    Feb 2005
    Posts
    177
    Nevermind, I figured out the problem

  4. #4
    Game Master ConnELITE's Avatar
    Join Date
    Apr 2005
    Location
    United States, DC
    Posts
    474
    hey if you figure out the problem you can delete you post btw
    BC

  5. #5
    A Senior Newbie - How Odd ForumNewbie's Avatar
    Join Date
    Mar 2003
    Posts
    590
    Or better still, post how you fixed it so that it helps the next person

    Glad to hear you were able to solve the problem, and sorry that none of us got a response to you before you'd solved it yourself

    M.
    Please note that my domain has changed to http://www.morganmultinational.com

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