My problem

Helloo,

My sprite redraws when i move it with my parameter, and i dont know how to fix it.
Here is my code, can you guys see any problems?

function setup()
    x=325
    y=325
    radius=50
    
    score=30
    scorecontrol()
    
    print(WIDTH,HEIGHT)
end

function draw()
    sprite("Dropbox:hud_0",x,y)

end

function scorecontrol()
    parameter.integer("score",0,60,0,checkscore)
    parameter.integer("x",0,749,350)
end

function checkscore()
    output.clear()
    if score<=10 then
        print("fail!")
    elseif score <=20 then
        print("better")
    elseif score <=30 then
        print("good")
    elseif score <=40 then
        print("OMG!")
    elseif score <=50 then
        print("ninja!")
    else
        print("Cheater!")
    end
end

You’re missing background(<some rgb values>) to clear the screen between each draw.

@Andrew_Stacey thanks i tottally forgot about background