var/Angle=rand(0,360)
var/Dist=64
pixel_x = cos(Angle)*Dist
pixel_y=sin(Angle)*Dist
Problem description:This is code that I had recovered from digging deep into the forums. I sort of understand the math in the code from testing it and configuring it. But I'm having trouble actually applying this concept to objects that move. This code just makes it appear. Also, I know there is a library called absolute positions that goes over angles in pixel movement. I already tried understanding, it but the math overwhelms me. Can someone help me understand the math and the logic of angles so that I can apply it to my code?