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:2moox76v]Self.Angle > 120 ? clamp(Self.Angle - 60*dt, 120, Self.Angle) : clamp(Self.Angle + 60*dt, Self.Angle, 120)
"?" is like "then"
":" is like "else"
So it's like doing:
if thisCondition then
Or putting it in event terms:
System: Compare Sprite.Angle > 120
Sprite: Set angle to clamp(Self.Angle - 60*dt, 120, Self.Angle)
Sprite: Set angle to clamp(Self.Angle + 60*dt, Self.Angle, 120)
Take a look at the manual about Expressions
[quote:2moox76v]?: is a conditional operator, which allows you to test conditions in expressions. This is especially useful when used with the comparison operators and logical operators. It takes the form condition ? result_if_true : result_if_false
e.g. health < 0 | score < 0 ? "Game over!" : "Keep going!".
The condition counts as true if it is non-zero, and false if it is zero.