Hello everyone! So I've got another problem here. A few months ago I've worked with Scirra Construct, where were system expressions like distance,clamp and lerp. Now I'm trying to do similar in Stencyl, but It won't work. Can anyone help me please?
I've attached some examples of my behavior. It looks like everything is right, but It still won't work properly.
In Updated Event:
Time - clamp(distance(Sprite3.X, Sprite3.Y, Sprite.X, Sprite.Y) / 256 - 0.5, 0, 1)
Height of self - lerp('oh', 'dh', 't')
Width of self - lerp('ow', 'dw', 't')
Angle of self - lerp('oa', 'da', 't')
T - cos('time' * 180) * -0.5 + 0.5
Clamp = clamp(x, lower, upper)
Return lower if x is less than lower, upper if x is greater than upper, else return x.
Distance = distance(x1, y1, x2, y2) Calculate distance between to points.
Lerp = lerp(a, b, x) Linear interpolation of a to b by x. Calculates a + x * (b - a).
In Created Event:
I think everything is fine, but I'm not sure about "oa"
Oa = Angle of Self
Is it right?
Please help me if you can and sorry for my bad english!
Best,
-Erick