Jump to content
MakeWebGames

CSS Stat Bars.


peterisgb

Recommended Posts

Don't post much here as i don't get many ideas so i though i would post this here at least.. Enjoy.

This code gives you a coloured animation stat bars.

create a .css page.

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

and then in header add

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

under title. (change FILE_NAME.css to the .css file you've created.)

You can replace the stats bar with the code below, Of course change the names accordingly.

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

That shouldn't be to hard i hope.

Contact me if you do need help.

Tips.

You can change the colour of the bars via CSS, orange, green and blue are included and remove the "stripes" to remove the animation.

Enjoy

statsscreenhot.jpg.2cd5e6e7ea6f36d963de4aad54c14a55.jpg

Link to comment
Share on other sites

Nope not quite sure on that yet,

An if statement checking the users health would suffice I think. So let's say we want it to be red when the users health is 25 it would be something like this:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

I think this might work, try it. ;)

 

<progress value="22" max="100"></progress>

^^That is also an easy option. Easy to edit and all.

Easy option for what?

Edited by Script47
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...