It looks like you're new here. If you want to get involved, click one of these buttons!
I’m halfway complete with this code. I would like the ellipse to travel along the edge of the screen and end up back where it started. I got it to travel halfway but need help finishing.
function setup()
point = {x = WIDTH*.95, y = HEIGHT*.95}
tweens = {
tween(1, point, {x=WIDTH*.10}),
tween(1, point, {x=50}),
tween(1, point, {y=HEIGHT*.05}),
}
tween.sequence(unpack(tweens))
end
function draw()
background(0)
ellipse(point.x, point.y, 50)
end
Comments
@dave1707 I use percentages so it scales to any size screen but using your logic I was able to figure it out. Thanks Dave!