Thank you for the reply!
It almost works. The tile starts rotating around its center, it starts floating a bit up, then stops, then move up again… It keeps like this infinitly. Here’s my code:
var m:Matrix = matrix.clone(); var point:Point = new Point(x + width / 2, y + height / 2); m.translate(-point.x, -point.y); m.rotate(rotation_value * Math.PI / 180); m.translate(point.x, point.y); set_matrix(m);
I think the problem may be with the
width / 2 and
height / 2.