Add Actor:bezier.

This commit is contained in:
Flameshadowxeroshin
2010-12-20 10:22:30 -06:00
parent a8de96107f
commit 7fe0553c7a
+11
View File
@@ -133,6 +133,17 @@ function Actor:Center()
self:y(SCREEN_CENTER_Y)
end
function Actor:bezier(...)
local a = {...}
local b = {}
local c = 0
assert((a == 10 or a == 6), "bad number of arguments for Actor:bezier()")
for i=3,c do
b[#b+1] = a[i]
end
a[1]:tween(a[2], "TweenMode_Bezier", b)
end
-- (c) 2006 Glenn Maynard
-- All rights reserved.
--