Jump to content
MakeWebGames

Energy and Sats bars help


canibalstew

Recommended Posts

well basic MC bars are pretty basic but im sure if you did something like...

 

  1. Open photoshop
  2. Make New image 100px - 10px
  3. Choose a foreground and background color IE( Foreground: d62727 Background: 9b1c1c )
  4. Drop a color into the image
  5. Goto 'Layer' on the toolbar then down to 'Layer Style' and on the menu select 'Gradient Overlay'
  6. Select normal blend, opacity 80%, Select the top left gradient and click 'Ok'
  7. Goto 'Image' on the toolbar then down to 'Image Size...' and change the 'Pixel Dimensions' to 1px - 10px

Note: If during image change you cannot edit the height without automatically editing the width then Dis-select the 'Constrain Proportions' Check box near the bottom of the 'Image Size' Prompt.

Result: redbar.jpg

Seconary Result: redbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpgredbar.jpg

You could also do a simple background by doing a 1px inner glow on a basic 000000 background image of same standards.

 

This may or may not be helpful my apologizes if it is not detailed enough

Link to comment
Share on other sites

Well i can make normal ones like that, but my issue is when I use real images like an equalizer image with a background that spans red to green. Although I have to reverse the way its done normally as the first image is the max percentage and the background is the current percentage.

Now this way does not work as it does not overlay right.

 

Do I have to span or expand the images to get them to overlay such as you described as a smaller image that expands to the width and height.

 

I am trying to understand this as I want a better and more graphical bars that still raises and lowers with the current stats.

Link to comment
Share on other sites

I don't use conventional MC bars anymore but i believe it was worked out by width 1px width obviously is just so it can be stretched without any issue.

for example the experience bar works out like so

 


$experc = (int) ( $ir['exp'] / $ir['exp_needed'] * 100 );
$exopp = 100 - $experc;

[b]Energy:[/b] {$enperc}%

[img=greenbar.png][img=redbar.png]

 

basically it's two images the first is the existing experience divided by the experience needed then multiplied by 100.

Link to comment
Share on other sites

That is correct, but I am trying to switch it around to have the second image to be spanning and the first to be the max exp ubt it will not work as it wont go under the front image. for example using your example it would need to be like this;

 

$experc = (int) ( $ir['exp'] / $ir['exp_needed'] * 100 );
$exopp = 100 - $experc;

[b]Energy:[/b] {$enperc}%

[img=frontbar.gif][img=backbar.png]

 

but it comes our as two images side by side with the background image having the correct width.

My issue is that it will not overlay.

I am willing to change the whole thing to do this, but I cannot find the correct tutorials that will help me learn this type of image overlay.

Link to comment
Share on other sites

I just hope I can figure this out as there has to be something to do other than these old plain bars as I know I have seen others but cannot remember where.

 

can anyone please direct me in the right direction.

tutorial sites for this and maybe someone will be kind enough to provide me with a few pointers on layout designing as I cannot get a new layout created for the life of me and I need 2 new layouts asap.

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...