Talk:Kirby GUI/@comment-174.52.54.186-20130808225121/@comment-7236903-20130808233945

If you want to make an object move around with it, here is the formula for calculating x and y coordinates:

X=X+COS(RAD(ANG))*SPD

Y=Y+SIN(RAD(ANG))*SPD

SPD is the speed you want to move at, you can use distance variable D for SPD if you want the object to move at a speed based how faar the circle pad is pushed, using D directly might be too fast though so multiply and divide it as needed, I believe at default with no settings chaged, the max for D is 14, so doing SPD=D/8 would be pretty good, pushing the circle pad all the way would be 1.75 pixels/frame or 105 pixels/second, so you could run up 1 screen in about 1.8 seconds, also make SPD=0 if your not pressing the circle pad