First problem is that the GSLS materials dont show up and for some reason the guns uv only shows in GSLS:confused:. Second problem is geting the turret’s bullets to deal some damage to the character. I set up 2 health bars so i hope you guys dont get too confused:spin:
I looked at your file and set some of the materials to shadeless and it works. I just can’t seem to find the “full” state color of your ammo bar. The colors are there - you just don’t have any lights to illuminate them. So set your materials to shadeless.
This was in 2.55, GLSL mode (the file you posted is set to textureface I believe - I switched it).
Beach Assault.blend (714 KB)
I also changed your IPO’s to linear, meaning they dont “slow down” near the start and end.
if you want to stop it doing that in future, over the IPO window press T, select linear.
The script simply get’s the values of ammoHidden and Health, and makes them a globalDict variable. Then it uses the globalDict values in the HUD script to change the value on the bar (adding 1 to the values, as ipo starts at 1).
You may have to change it back to glsl