GSLS not working and damage

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:

Beachfort.blend (710 KB)

What graphics card do you have? Is it one that supports GLSL?

ive used GSLS before and worked fine, but my graphics card is pritty crappy, not sure exactly what it is (i think its geforce 8200 go)

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

thanks, its working now, if anyone could suggest how to make the health bar decrease with collisions that would be very helpful

easy, ill change your demo

nearly done

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

ahhh i see. I really need to start learning python script