0 votes
asked by (880 points)
edited by

I want to let the player see his characters stats, and i want their stats to go up or down depending on what the characer does,  an event that happened, by an enemy, or environmental effects on the player character.

Question 1: do i use a skill bar?https://www.w3schools.com/howto/howto_css_skill_bar.asp or a progress bar https://www.w3schools.com/howto/howto_js_progressbar.asp

Question 2:how would i be able to add or subract from the bars?

Question 3: I want the bars to be named and also show the number, example( strength 50, agility 19)

question 4: Should i make in more D&D like where the player chooses from certain attributes and is stuck with those numbers or should i have a max limit depending on what attribute it is i.e stamina 130?




1 Answer

0 votes
answered by (26.7k points)
selected by
Best answer
Answer 1: You'll need to use code like the progress bar, since you want to be able to change it.

Answer 2: See that sample code.  It shows you how to change it.

Answer 3: Again, see that sample code.  It shows you what you're asking for.

Answer 4: There is no one right answer here.  It's up to you and how you want to design your game.

Hope that helps!  :-)