Scripts / Cannot load image 100?

Author
Message
EXTREME D3CIMATE
10
Years of Service
User Offline
Joined: 8th Dec 2013
Location: ebensburg,PA
Posted: 2nd Jan 2015 02:48 Edited at: 2nd Jan 2015 03:18
My script changes a custom HUD based on the amount of "Cash" the player has, to display it. I know it sounds backwards, but if I have $5, image "005" is the HUD, and shows "$5". I can pickup $99 (images 000 - 099) , but once I pick up $100, my HUD dissappears. Why can't I load image 100, or 101, or 102? Please help guys.





Again, this code works, as long as the players money is below $100, I pick up "cash boxes" to test it. The cash boxes increase the CASH variable by 5 (or whatever I set) through their own script.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 2nd Jan 2015 13:22
try 0100.png maybe? perhaps there's a limit though it seems odd to be 99 if the image name needs to be 3 numbers, why not 2 if so?... dont fancy making loads of images to test

better to wait for multiple images then you wont need so many...
make 0 ~ 9 numbered images, make 1 background note without numbers, place the desired numbers on top as the value changes.

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 3rd Jan 2015 00:17
I can't get it to display an image above '99' either. I tried loading from slot 1 and also 100 (instead of 0) and I thought that worked but then started to get random bump map images displayed (very weird). Guess this image display functionality needs a bit more work It's a good start though.

EXTREME D3CIMATE
10
Years of Service
User Offline
Joined: 8th Dec 2013
Location: ebensburg,PA
Posted: 3rd Jan 2015 00:43
I will try to cut back on the images for the hud and see what happens.
Thank you..

Login to post a reply

Server time is: 2024-05-07 10:52:31
Your offset time is: 2024-05-07 10:52:31