Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Need help with changing HUD health image

Author
Message
MandoAndy
14
Years of Service
User Offline
Joined: 10th May 2010
Location: New Hampshire
Posted: 15th May 2010 22:36
Hello! I am fairly new to scripting. (Kinda) So, I was hoping someone could help me out here.

I'm trying to make the HUD health image change based on the player's HP. I placed the following code in the setuplevel.fpi script... Please take a look:



The image should be gradually changing as the player's health lowers and rises, but it's not working for me.

I'm sure there is a simple way to accomplish this. This script just gets stuck displaying the first HUD image, and no matter what the player's health is reduced to, it never changes.

Let me know what I'm doing wrong!! Bah. It's infuriating.
lotgd
14
Years of Service
User Offline
Joined: 2nd Apr 2010
Location: italy
Posted: 16th May 2010 02:07
look here http://forum.thegamecreators.com/?m=forum_view&t=169846&b=24

attached setuplevel.fpi precompiled

MandoAndy
14
Years of Service
User Offline
Joined: 10th May 2010
Location: New Hampshire
Posted: 16th May 2010 18:21
That's awesome! Thanks very much for pointing me to your hud system.

Login to post a reply

Server time is: 2024-11-25 00:26:30
Your offset time is: 2024-11-25 00:26:30