XP for Units

Hi everyone! I have one question, in short, must show a decrease in CP unit, let’s have 2 variables, and subtract one from another, so x decreases, but as this show? unit "hangs over the plane with a texture, texture, green …

how is this related to experience for units?

you played in the strategy? if you play, then saw that if it enters the unit had reduced health, so this effect I want

still not related to experience, it is more of a buff or aura.

I believe what he is asking is he wants a health bar for each unit, not exprience. a bit of broken english is hurting his cause. He wants a life bar that changes from green to yellow to red and shows a length.

A few questions you would have to ask yourself. Is the life bar a texture or a 3d graphic? Is it displayed on top of everything or in 3d space (object or GUI)? How is the color defined (Flat color changes at predefined levels or Lerp’ed through the 3 colors)?

Once you start defining how you want them to appear, you will start to get an understanding of what it will take to get them there. Then it will be a few searches on the forum or wiki to find the life bars that you are wanting.

This can also be done for an XP or SP bar. (viola. World of Warcraft)

sorry for my english, I’m from Russia, but you have correctly understood, I need a life bar that appears on every unit, thanks for the advice, I’ll look at the forum