is their any other way of doing it
because it seems very difficult for me to understand the logic
I never use symbols like you used and i did not understand what they belongs here
like "?" , " : " , " > "
last one i know its grater than symbol but how to use it here
[quote:10ylja1q]Self.Angle > 120 ? clamp(Self.Angle - 60*dt, 120, Self.Angle) : clamp(Self.Angle + 60*dt, Self.Angle, 120)
i never did these type of calculations
and until i didn't understand anything, I didn't apply it on my project. because want learning but keep things simple
like my example
my example is working very fine but problem comes when sprite cross 360
and when reverse rotation.