This is what I have so far. I am sure there are more than one mistake. Thanks
[code]
upanddown = function ()
transition.to(mo,{time = 500, mo.y = mo.y + 100, onComplete})
end
local function onComplete (self, event)
transition.to(mo,{time = 500, mo.y = mo.y - 100 })
end
mo.onComplete = onComplete
mo:addEventListener( “onComplete”, mo)
moFlyState1 = function () – Fly Around
mo.y = randomY
mo.isVisible = true
mo.bodyType = “dynamic”
mo:applyLinearImpulse(2,0,0,0)
timer.performWithDelay( 10, upanddown, 0)
timer.performWithDelay( 2000000 , moFlyState2 ,1)
end
[code]
[import]uid: 8192 topic_id: 1812 reply_id: 5430[/import]