A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: RPG help

  1. #1
    Senior Member
    Join Date
    Jun 2002
    Posts
    113
    Hello i need help i bret thanx for help i need help i with a RPG so my person will get take some life taken when a bad guy hits him i started over with my first game bret thanx for the help agin tellnig me to start over because i started in the middle and how do i make the person die when his life goes to zero any whant to see what i got done so far i email it to theme useing 3.51

  2. #2
    Senior Member
    Join Date
    Jan 2002
    Posts
    118
    Ummmm... Ok, hmmm. I think I get the jist(? or gist?) of what you are trying to do. (Some periods would be helpful)

    You want to have someone die after he touches a baddie too much. Ok, Here is an idea:

    Have an actions element running 10 - 100 times a second (depending on the speed of your computer or game)

    Put in a detect collisions statement and make it between your player and a baddie

    Then put in a let variable = value block and make the 'life' variable = life - 1

    Then put in a end block.

    You can have an editbox for the life and set it's attached variable to life.

    If you want multiple baddies, you need to make a seperate detect collisions statement (and let and end) for each one.

    If you want to have the character die, you must put in a if statement that is if life = 0 then

    Put in whatever you do for the character dying. (Go to keyframe, choose view, whatever)

    Then put in an end

    Hope it helps!

    P.S. Blainus/Kusco, Is the above correct?

  3. #3
    Senior Member
    Join Date
    Jun 2002
    Posts
    113

    Post hey thanx hey

    hey sorry about the spellling ect. I was in a hurry i works i think.

  4. #4
    Senior Member
    Join Date
    Jun 2002
    Posts
    113

    HEY SORRY

    it does work sort of but when he tochs the bad guy the life say -1 no 99 how can i fix that

  5. #5
    Senior Member
    Join Date
    Jan 2002
    Posts
    118
    try changing the times per second it runs to something low like 1 and then increase it by little bits.

    I hope it works, I didn't try it yet though.

  6. #6
    Senior Member
    Join Date
    Jun 2002
    Posts
    113
    ok ill try that

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