Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
hierarchy display images — Gideros Forum

hierarchy display images

JackoJacko Member
edited February 2015 in General questions
Hi,
Is there posibility to determine the hierarchy display images, you know, what picture on which one

Comments

  • the earlier they are in the stage child list then the earlier they are drawn.
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • Just to add something to @SinisterSoft answer, if you don't understand what you're doing - sometimes I feel this way ;) - for debugging purposes you can print_r() your parent sprite and read its children sprites (and their children, and metatables...).

    This won't give you the exact ordering inside each parent, since it uses "pairs" to parse the array, but if your question is related to who is parent to who this should give you a start. :)
    --recursive print of tables, by ar2sawseen
    function print_r (t, indent, done)
    done = done or {}
    indent = indent or ''
    local nextIndent -- Storage for next indentation value
    for key, value in pairs (t) do
    if type (value) == "table" and not done [value] then
    nextIndent = nextIndent or
    (indent .. string.rep(' ',string.len(tostring (key))+2))
    -- Shortcut conditional allocation
    done [value] = true
    print (indent .. "[" .. tostring (key) .. "] => Table {");
    print (nextIndent .. "{");
    print_r (value, nextIndent .. string.rep(' ',2), done)
    print (nextIndent .. "}");
    else
    print (indent .. "[" .. tostring (key) .. "] => " .. tostring (value).."")
    end
    end
    end

    Likes: SinisterSoft

    +1 -1 (+1 / -0 )Share on Facebook
Sign In or Register to comment.