sorting

API -

return function()
    local app = getApp();
    local ob = app.createGameObject(); --create object to attach images to
    applyImage(ob, 'welcomeImage'); --add the image titled 'welcome' to the object
    
    ob.image.anchor('center', true); 
    --anchors the image to the center of the screen...
    
    ob.image.sorting(-1000, 'background'); 
    --sets the image's layer to be on the background (behind everything)
    --with the sorting order of -1000 (behind objects greater than -1000)
end

Last updated