Hey, I'm new to the Halflife programming scene, not new to c++ however, but
looking at this thing sometimes makes me feel that ways, anyways on to the
real problem. I'm trying to
get a feel on how exactly i should make my hud look, and I want to use my
own sprites,
so I create a sprite (i make two of them, same exact sprite just one to use
for 320 and one for 640) and create a hud.txt which looks briefly like
below(i'll only show clip's of it to reduce spam and merely get my point
across)
--hud.txt--
22
//Sr hud ....god ...measuring these things with photoshop suxorz
//320
hud_main 320 320hud1 53 57 152 151
number_1 320 320hud1 5 5 9 10
....
//640
hud_main 640 640hud1 53 57 152 151
number_1 640 640hud1 5 5 9 10
...
--End of hud.txt--
As you can see i actualyl only have 22 sprites i want to load, so now I'm
like ok...
cheap quick hack, I'll just reposition the y coordinate and tell healthhud
class to use hud_main instead of cross. I compile her in debug setting,
load her up and try my mod ....bam. It blits FIRST the specified image i
told it to clip and blit onto the screen it THEN places the WHOLE sprite
file (not just the dimensions I specified)more or less a little diagnolly
lower and to the right, NEXT to it. I don't get it ....what's going on ?
what did I do wrong ? my sprite is an additive and I don't change anything
to the source except what sprite it should use
--Health.cpp--
m_HUD_dmg_bio = gHUD.GetSpriteIndex( "dmg_bio" ) + 1;
//Cheap hack, I don't mind using cross as my hud :)
m_HUD_cross = gHUD.GetSpriteIndex( "hud_main" );
--End of Health.cpp--
now i've searched and searched for real non incompetent tutorials(although I
appreciate what little infomration i could squeeze out of the others,
believe me) and have found no wrong doing in what I've done, yet come out
with horid results. I have a screenshot of the problem for later in depth
reference for anyone is intersted....*notes the chirping crickets and
guesses no one is* so If anyone could give me any feedback whatsoever on
this problem please do so( it also blits a little green tiny box at the
bottom of my screen which i think is just a casualtie that will be solved
when this issue is) Thankyou ahead of time, this is my first post and a
lengthy one as you can tell, thanks for bearing with me and reading the
message, I hope to contribute to more posts now that i've recently
subscribed to the list.
P.s. On a side note, I shouldnt use additive sprites if i want to use full
color sprites and not make them transparent huh ? I see DOD uses an alpha
test sprite for their hud_main piece
Thankyou,
Pj Bean (AKA Nakusku)
Lead Coder of Saiyan Rebirth(http://www.sr.flagrun.net)
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders