Version 0.2.0
LÖVE Documentation
OverviewLicenceCreditsGetting started
Devices
love.objectslove.graphicslove.audiolove.keyboardlove.mouselove.filesystemlove.timer
Types
AnimationColorFontImageMusicSound
Callbacks
loadupdatedrawmousepressedmousereleasedkeypressedkeyreleased
Miscellaneous
ConstantsConfig filesKeyboard shortcuts
Function
Animation:setCenter( x, y )
For instance, a 128x64 animation (assuming all frames have equal size), will have a default center at <64,32> (the actual center). If you want the animation to rotate around its top-left corner, you set the center to <0,0>.
Usage
Animation:setCenter( x, y )
Arguments
xThe position of the center along the x-axis.
yThe position of the center along the y-axis.
Returns
Nothing