I olny found linear transition,but no rotation.
how can I do a rotation animation ?
thanks. [import]uid: 21680 topic_id: 7475 reply_id: 307475[/import]
I olny found linear transition,but no rotation.
how can I do a rotation animation ?
thanks. [import]uid: 21680 topic_id: 7475 reply_id: 307475[/import]
See:
http://www.youtube.com/watch?v=YVRRotMYXyI
and
http://www.youtube.com/watch?v=BOI96QtXtoU
You can also do something like:
local object = yourObject;
local rotateFunc = function ()
object.rotation = object.rotation + .02 – or some rotation amount
end
timer.performWithDelay (1, object, 0)
[import]uid: 13859 topic_id: 7475 reply_id: 26544[/import]