It's not lerping correctly - or am I missing something?
System: "something" -> Sprite | Set angle to anglelerp(self.Angle, 45, dt)
Red square indicates current angle of the sprite.
<img src="http://dl.dropbox.com/u/34375299/Construct%202/bugs/alerp01.jpg" border="0" />
Works as it should, nothings wrong here.
But if sprite angle is changed to something different than 0, like here for example:
<img src="http://dl.dropbox.com/u/34375299/Construct%202/bugs/alerp02.jpg" border="0" />
Sprites angle should rotate to "green" position instead it's going all the way to "red" position (original angle position).
Develop games in your browser. Powerful, performant & highly capable.
Nope, angles are static. If you want the new position to add 45 degrees, you'll have to add the angle before hand. Ie set angle to anglelerp(self.angle,self.variable("oldangle")+45,dt)
Sure thing. Cool feature, glad we have it.
So, not a bug?
it's not lerping by 45 degrees, it's lerping to 45 degrees. Not a bug.
OK, closing then.
Ashley no, not a bug. But you could mention that somwhere, manual maybe or anglelerp exp. itself in editor, cause it's a bit confusing at begining.