Looping a tween.sequence

Hello,
I feel really stupid, but I can’t seem to loop a tween.sequence. Any help would be great.
Thanks!

Try this, the last tween calls a function that repeats the sequence


function setup()
    TweenLoop()
end

function TweenLoop()
    point = {x = 200, y = 200}
    t1 = tween(2, point, {x = 400})
    t2 = tween(2, point, {x = 100})
    t3 = tween(2, point, {y = 500})
    t4 = tween(2, point, {x=200,y = 200},nil,TweenLoop)
    tween.sequence( t1, t2, t3 , t4)
end

function draw()
    background(220)
    fill(255,255,0)
    ellipse(point.x,point.y,50)
end
 

@Ignatz - Thanks. Then it mush be an issue with my other code. I’ve got that.