How to make this ? Just any ideas

Your pixel sun looks good, but there has to be a better way to code the flight path than to brute force it like that. I’d use the actual equation of a circle for that (maths I know). Try the old (x – h)^2 + (y – k)^2 = r^2 which in gdscript is pow((x – h), 2) + pow((y – k), 2) - pow(r, 2) = 0.
(h, k) is the (x, y) of the middle of the path and r is its radius. Though you’d probably have to convert that into two functions, one for each half-circle. So that’s
if y <= k:
[tab]x = h - pow((pow((y – k), 2) - pow(r, 2)), 0.5)
else:
[tab]x = h + pow((pow((y – k), 2) - pow(r, 2)), 0.5)
…maybe.
Honestly I don’t trust that I got that right but if you want a good circle you will absolutely need something like that. And about the rotation of the ship, you could probably teleport something to you at the end of each frame, then before it teleports to you again next frame, get the angle from it to you and point the sprite that way. Hope this helps

(replied to the wrong thing first time around)

1 Like