working w/ health Zelda: Engine

Blitz3D Forums/Blitz3D Beginners Area/working w/ health Zelda: Engine

FBEpyon(Posted 2003) [#1]
Hello,

Im having problems makin a health eninge for my Zelda game, I have manged to get the HUD to work great..

Anyways I was wondering what people thought the best way of going about makin the same health metter they have in SNES version of Zelda with the 20 hearts and having a max of 40 health small and big heart per every 20 hearts.. if that makes sence... anyways some please help me..


ashmantle(Posted 2003) [#2]
I really like the old zelda heart meter.. and how they drive
you crazy with beeping sounds when you're low on it ;)


FBEpyon(Posted 2003) [#3]
Yeah well im lookin for help not comments on how you liked it.. HEHE


soja(Posted 2003) [#4]
I don't understand what you need help on...

design?
code implementation?
graphic representation?
...?

...and twenty forty big small etc doesn't really make sense either... it's been a while since I played the snes version.


Craig Watson(Posted 2003) [#5]
Maybe you should start with something smaller.


FBEpyon(Posted 2003) [#6]
I have done, small games aready, im tryin for a big project..

hmm I don't know how to really put it. If you have played Zelda:LTTP then you would know what kind of health engine im lookin for Im trying to setup the visual part of the health engine, the hearts on the HUD.

P.S. coding help please


Anthony Flack(Posted 2003) [#7]
I'm guessing, that your health is represented by 20 big hearts? And if you get hit, the end heart turns into a small heart, and then next hit, it disappears? Is that right?

If so...


SeedRnd MilliSecs()
health=Rand(0,40) ; just To test it! 

;this is the calculation 
hearts=Floor(health/2) ; big hearts = half total health, rounded down 
If health Mod 2=1 Then littleheart=1 Else littleheart=0 ;health is odd number? then little heart on the end 

;simple thing to display it 
Print health
h$="" 
For lp=1 To hearts 
h$=h$+"@" 
Next 

If littleheart Then h$=h$+"*" 

Print h$ 


but I agree, if you're having trouble with something simple like this, you've got big problems ahead...! (unless I misunderstand what you're asking for)


FBEpyon(Posted 2003) [#8]
thanks for all your help, but I got it figered out...