Stamina bar

Discussion in 'Javascript/Plugin Support' started by eivl, Oct 29, 2015.

  1. eivl

    eivl Villager Member

    Messages:
    20
    Likes Received:
    1
    First Language:
    English
    I want to make a stamina bar, i know how to do the logic in javascript, but i have almost no experience in drawing graphic.

    So, any ideas on where i should start?
     
    #1
  2. Jeremy Cannady

    Jeremy Cannady Coldfire Veteran

    Messages:
    449
    Likes Received:
    261
    Location:
    Texas
    First Language:
    English
    Where will the stamina bar be displayed? On the map screen or in battle?
     
    #2
  3. eivl

    eivl Villager Member

    Messages:
    20
    Likes Received:
    1
    First Language:
    English
    Oh, it is on the map. I will use it to limit the amount of time you can dash. 
     
    #3
  4. Jeremy Cannady

    Jeremy Cannady Coldfire Veteran

    Messages:
    449
    Likes Received:
    261
    Location:
    Texas
    First Language:
    English
    Well you need to make a variable that is a part of Game_Party because the whole party will share this.

    Set that to 100 or so that would be the staring value.

    Then every time you dash you lower this value each second until 0.

    Once zero then disable dash.

    Make sure the party can regen stamina or they will never be able to dash again.

    Once they reach a certain stamina say max then re-enable dash.

    I would take a look at how the game draws the health and mana bars and use that as a boiler plate to make the stamina bar.
     
    #4
  5. eivl

    eivl Villager Member

    Messages:
    20
    Likes Received:
    1
    First Language:
    English
    Thanks, i have done all the variable manipulation, i just need to draw graphics, i will look into how the health bar and see what i find out!
     
    #5
  6. Jeremy Cannady

    Jeremy Cannady Coldfire Veteran

    Messages:
    449
    Likes Received:
    261
    Location:
    Texas
    First Language:
    English
    #6
  7. Jeremy Cannady

    Jeremy Cannady Coldfire Veteran

    Messages:
    449
    Likes Received:
    261
    Location:
    Texas
    First Language:
    English
    [​IMG]

    Something like this?
     
    #7

Share This Page