Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

GIF/APNG not working as supposed?

edited August 2018 in Questions Posts: 808
-- Test

-- Use this function to perform your initial setup
function setup()
    local function s(data)
        show = true
        img = data
    end

    http.request("https://i.imgur.com/8VXWoDn.png", s, function(err) print(err) end)
end

-- This function gets called once every frame
function draw()
    if show then
        sprite(img, WIDTH*.5, HEIGHT*.5)
    end
end
-- Test

-- Use this function to perform your initial setup
function setup()
    local function s(data)
        show = true
        img = data
    end

    http.request("https://i.imgur.com/VOE4mgZ.gif", s, function(err) print(err) end)
end

-- This function gets called once every frame
function draw()
    if show then
        sprite(img, WIDTH*.5, HEIGHT*.5)
    end
end

Any ideas?

Comments

Sign In or Register to comment.