Jul 26, 2008

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

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

free web hosting

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

ewcreators
In some games you see those graphical bars which show your experience or your hp/life ..etc

How can i make something like that in php?

Reply

sonesay
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%).

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : graphical gaming games

  1. Creating Something With Co-ordinates With Php. - Something like you see in those web-based php games, like a map or som (12)
  2. Multiplayer Php Games? - i have an inefficient idea (4)
    Well I was thinking about making a little multiplayer game in php today and I was wondering, how
    would I do this. Well I came up with an enormous and quite inefficient way..Lets say I wanted to
    show what users were at the same place as you. Well, I would use databases, 1 to say what location
    and 1 to say if the players are online. Then if the player is online and at the location, say
    they're their. I think this is inefficient, but is there any other way?...
  3. Flash Games And Post Data - (0)
    i want to put a highscore section for a bunch of flash games on a website. i know that when most
    games are done the score is in the post data, which can be viewed if you have the firefox live http
    headers extension. but how would you insert the postdata from the flash games into the database?...
  4. PHP Games - (5)
    I was wondering (and also wanted to ask the PHP experts, since I'm not /dry.gif"
    style="vertical-align:middle" emoid=" ) about those PHP games, the turn-based strategy games like
    Kings of Chaos, Dark Throne, etc... Is there a set of code or better yet a tutorial that tells how
    to create PHP games, or you just have to learn PHP and utilize what you learn? I'm afraid it
    might be the second one... /unsure.gif" style="vertical-align:middle" emoid=":unsure:" border="0"
    alt="unsure.gif" />...



Looking for graphical, gaming, games,

Searching Video's for graphical, gaming, games,
advertisement



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



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE