Hello everybody,
I'm working on a schoolproject and i have a big problem that keeps me from progress:
I have to move an object with a circular movement.
In order to achieve this, I startet with trying to move another object in a perfect circle with the 2 methods "setLocation()" and "move()" and then let the object which is not allowed to rotate follow it, but I didnt even got the perfect circle to work(it makes a "curvy" circle).
My guess is that my map might be to small for a perfect circle (528, 699)
does someone know how to solve this problem?
(I just need help with the circular movement. The following already works)
-Hadis
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | public class asdf extends Projectiles { private int a = 0 ; public void act() { if (a != 360 ) { a++; } else { a = 0 ; } setRotation(a); move( 1 ); } } |