License from €75 Log in
DE EN FR ES IT CZ

Can t find yellow hex color for my healthbar

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  1. · 8 years ago
    local health

    graphics.addDrawFunc("draw()", 0)



    function drawHealthBar()

    health = (Values["MC_health"].Int / 100) * 300

    -- + --

    function draw() graphics.drawBox(319, 84, health, 40, 0xFFFF00, 1) end

    end
    If I m not wrong 0xFFFF00 should be yellow, but it come out blu, what's the right code for yellow?
  2. Working on a game?

    The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license.

    See licenses Try it for free
  3. · 8 years ago
    for some reason the color order is incorrect in VS.

    I think it's BGR or BRG instead. I forget which order, but try swapping the first 2 with the last 2 values.
  4. · 8 years ago
    thank you, it worked
  5. · 8 years ago
    which order was it?
  6. · 8 years ago
    it was 0x00ffff

    Could you tell me how do I register separate funcion for the drawBoxes? I'm stuck roll

    • Image in post
  7. · 8 years ago
    what's up with the last fight icon?

This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.

New thread

Really delete this post?