Lowering the quality of Sprites

--Touchy Touch

-- Use this function to perform your initial setup
function setup()
    print("Hello World!")
    Sprites = { }

-- This function gets called once every frame
function draw()
    local sprites = Sprites
    -- This sets a dark background color 
    background(40, 40, 50)

    -- This sets the line thickness
    -- Do your drawing here
    for i,v in ipairs(sprites) do
        if v.Time then 
            if v.Time <= 1 then
                table.remove(Sprites, i)  
                sprite(v.Image, v.X, v.Y)
                v.Time = v.Time - 1
            sprite(v.Image, v.X, v.Y)

function touched(touch)
   -- if  touch.state == BEGAN then
        table.insert(Sprites, {
    Image = "Documents:Hand";
    X = touch.x;
    Y = touch.y;
    Time = 60
   -- end

I plucked an image of a hand off of the interwebs. The problem is, it’s very high Rez. Codes has trouble rendering about 500+ of it. (It’s a test shhhh.) Is there anyway I could lower the quality of a Sprite? Thanks.

First, edit your post above to see what I put at the beginning and end to make it look right

Second, you can use an image editor to reduce your image size. I use Paint.net, which is free.

Alternatively, you can make a smaller image with image(w,h), draw a downscaled version of the highres image on it and then use that instead.

Using an image editor is probably the better option though. :slight_smile:

though if you can’t read the image to start with (because it’s too big), that isn’t going to work…