|
|
Function
Animation:setCenter( x, y )
For instance, a 128x64 Animation (assuming all frames have equal size), will have a default center at (0,0)
(the actual center). If you want the Animation to rotate around its top-left corner, you set the center to (-64,-32).
Unlike Images, which have absolute centers, Animations have relative centers. This is because frames in an Animation
can have variable dimensions.
Synopsis
Animation:setCenter( x, y )
Arguments
x
The position of the center along the x-axis.
y
The position of the center along the y-axis.
Returns
(Nothing)
Copyright © 2006-2008 LÖVE Development Team.
|