Transition Manager 1.0

Hi!
I couldn’t find any similar when I was searching for ways in making curve transitions, so I modified Carlos Point Reduction Code found here:
http://developer.anscamobile.com/code/point-reduction-code-0

Transition Manager 1.0:
http://developer.anscamobile.com/code/transition-maker-10

How to use it:
Touch the Corona Simulator screen to make a path of your own desire. Then look in the Terminal to get the transition in code.

Point Reduction Code in action:
http://blog.anscamobile.com/2010/12/corona-sdk-tutorial-polygon-point-reduction-with-curve-fitting/

An example of what you will get in return:

---------------  
--Start Copy+paste:  
---------------  
local object = display.newImageRect('object.png', 56, 56)  
   
local xValues = {[1] = 242, [2] = 190, [3] = 139, [4] = 104, [5] = 93, [6] = 96, [7] = 115, [8] = 149, [9] = 197, [10] = 237, [11] = 278, [12] = 313, [13] = 323, [14] = 313, [15] = 288, [16] = 256, [17] = 251}  
local yValues = {[1] = 86, [2] = 80, [3] = 85, [4] = 112, [5] = 158, [6] = 201, [7] = 242, [8] = 275, [9] = 283, [10] = 279, [11] = 262, [12] = 233, [13] = 190, [14] = 149, [15] = 115, [16] = 88, [17] = 85}  
   
local number = 1  
   
local function move()  
 local function next()  
 number = number + 1  
 if number == 17 then  
 object:removeSelf()  
 number = 1  
 return  
 end  
 return move()  
 end  
 transition.to(object, {time = theTime, x = xValues[number], y = yValues[number], onComplete = next})  
end  
move()  
---------------  
--End Copy+paste  
---------------  

If you have any feedback, just let me know!

Greetings!
joelwe [import]uid: 54640 topic_id: 23173 reply_id: 323173[/import]