Image parameters help me

Hey I need a parameter sample code to change the on screen image you people would be legends if you can help

Here:


function setup()
    images = {
        readImage("Cargo Bot:Cargo Bot Title"),
        readImage("Cargo Bot:Codea Icon"), 
        readImage("Planet Cute:Character Boy"),
        readImage("Platformer Art:Hill Tall")
    }
    parameter.integer("selected", 1, #images, 1)
end

function draw()
    background(255)
    
    sprite(images[selected], WIDTH / 2, HEIGHT / 2)
end

Add as many images as you want to the table.

THANKS YOU SOOOOO MUCH JakAttak

@JakAttak could you help me get them all to have their own X and Y ^:)^

@Dantheman2001 - see lines marked --X

The positions table has (x,y) numbers for each image, in the same order

function setup()
    images = {
        readImage("Cargo Bot:Cargo Bot Title"),
        readImage("Cargo Bot:Codea Icon"), 
        readImage("Planet Cute:Character Boy"),
        readImage("Platformer Art:Hill Tall")
    }
    positions={vec2(100,100),vec2(200,200),vec2(300,100),vec2(500,150)} --X
    parameter.integer("selected", 1, #images, 1)
end

function draw()
    background(255)
    sprite(images[selected], positions[selected].x, positions[selected].y)  --X
end

Or maybe this @Dantheman2001

function setup()
    images = {
        readImage("Cargo Bot:Cargo Bot Title"),
        readImage("Cargo Bot:Codea Icon"), 
        readImage("Planet Cute:Character Boy"),
        readImage("Platformer Art:Hill Tall")
    }
    parameter.integer("selected", 1, #images, 1)
    parameter.number("x",0,WIDTH,WIDTH/2)
    parameter.number("y",0,HEIGHT,HEIGHT/2)
end

function draw()
    background(255)
    sprite(images[selected],x,y)
end