The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.


Results 1 to 10 of 10

Thread: Game problem

  1. #1

    Game problem

    ok, if you haven't already i have uploaded the beta version of my game
    LINK>>>here<<<LINK

    And if you noticed, you cant battle yet. What im trying to figure out is how to do the battle sequence.

    What I have now is 2 timers, and if you click attack on your side you will do damage and then your attck button become disabled until the timer ticks. Then the enemy attacked when his timer ticked.
    The thing is it's impossible to win like that,
    I need some ideas on how to do the attack seqeunce(ex: turn based, random damage, etc...)
    NOTE: This is in Microsoft visual studio Visual Studio

    This is the interface
    [Insert Generic Signature Message Here]

  2. #2
    Does your game have stats? Like strength, defence etc?
    You will need to think up some algorithims.
    Web Design and Web Development blog
    Designer Notice: Browser List for design compatibility

  3. #3
    yes, you have Defense and Attack stats, I just dont know how to make the battle work.
    [Insert Generic Signature Message Here]

  4. #4
    How about another stat for speed?
    Which would increase the speed at which you can attack (higher speed, the lower amount of time the button is disabled), but the actual length of time the button is disabled could be a few seconds either way of a number.
    e.g. It could be down for 4 seconds, 2 seconds or 6 seconds but not higher than 6 and not lower than 4.

    Then it would be like:
    user presses attack button, this takes away a certain amount off the enemy depending on an algorithm that takes into account your strength and the opponents defence. This temporarily disables the attack button (explained above).
    This happens the same for the enemy but the amount of time between attacks for the enemy is based on a random number and their speed.
    Web Design and Web Development blog
    Designer Notice: Browser List for design compatibility

  5. #5
    Go buy your self a DND manual man. If i remember right the GM manuals have some basic formulas.

    D20 can show you all you need to know.

    Join #kirupa | Click the under my Username | CL | Jeff

  6. #6
    Im going to try alexgeek's idea first and see if i can get that to work
    [Insert Generic Signature Message Here]

  7. #7
    how would i create a random number?
    [Insert Generic Signature Message Here]

  8. #8
    Dim foo As New Random
    i = foo.Next(1, 10)

    1 to 10

    luckily your image shows .vb.

    Join #kirupa | Click the under my Username | CL | Jeff

  9. #9
    If you give me some more information on the stats such as how many you start with, how hard it is to get more stat points etc. I can help with an algorithim.
    Web Design and Web Development blog
    Designer Notice: Browser List for design compatibility

  10. #10
    your attack is determined by the weapon you have on, and your defense is based on what armor you have on, your speed naturally starts off at 30.
    You get 10 points each time you level up, those 10 points are used to increase your natural attack, speed, or defense.

    here is the battle screen

    the stats are entered through code

    oh and another thing, im trying to fix the problem where if you click "none" it wont put it in your inventory, this is what i got
    If helmVar.Text = "none" Then helmList.Items.Add(helmVar.Text)
    how would i make this say that if helmVar.text DID NOT equal none then it would do the "THEN" action?
    Last edited by silverneo188; January 3rd, 2008 at 11:26 PM.
    [Insert Generic Signature Message Here]

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012