TELLES0808 wrote:You can do a math.
How to do:
create instance radians = 0;
create instance degrees= 0;
create instance radius = 100; // random radius
initial.x = 50; // random primary x position
initial.y = 50; // random primary y position
degrees = degrees + 5; // each time degrees is increased by 5 degrees
radians = degrees * Math.PI/ 180;
sprite.y = initial.y + Math.sin(radians) * radius // because sin A = y/r
sprite.x = initial.x + Math.cos(radians) * radius // because cos A = x/r
I've been struggling to get this circular movement right, and finally your solution worked best for me..Thanks a lot.