Help with a constant

Honey Bee

Bad coding? Check. Broken English? Check.
how INFLIVES works? i tried player.lives & INFLIVES and player.lives == INFLIVES and it didn't work, any help is greatly appreciated. for the context i want my HUD to display a infinite symbol when lives is infinite, and i can't find a way to check if it's infinite or not.
 
how INFLIVES works? i tried player.lives & INFLIVES and player.lives == INFLIVES and it didn't work, any help is greatly appreciated. for the context i want my HUD to display a infinite symbol when lives is infinite, and i can't find a way to check if it's infinite or not.

INFLIVES equals to 127, so this time try:
if player.lives == 127



If that didn’t worked… try this instead:
INFLIVES hud thing:
local theplayerlives = "INF"

if player.lives >= 0
and player.lives <= 99
    theplayerlives = player.lives
end

v.drawString(160, 100, theplayerlives, V_50TRANS, "thin-center")
Edit it to your needs!

(edit: forgot to quote the post lmao)
Post automatically merged:

for the context i want my HUD to display a infinite symbol.

Oh... In that case, replace "INF" from the script of my previous post with string.char(22).
 
Last edited:

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top