Jump to content
xisto Community
Sign in to follow this  
ewcreators

Graphical Gaming?! In some games you see those......

Recommended Posts

I dont know the exact code to do it but I think its done by using an image of what ever you want the bar to look like and then applying a width % value to it. Thats how some voting bars are made so i guess you can use it for representing anything else you like as well.so say you want to represent 50% hp you could have an image the side 50 pixels wide have a width value of 50% then it would be halfed to 25 pixels when displayed.<img src='imagebar.gif' width='"<?php echo $hp_level ?>"'$hp_level should = number+percent symbol (50%).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.