Okay. Try this:
local image = display.newRect(100,100,100,100) local frameLoop = function(event) image.x = 600+math.sin(event.time/400)\*200 image.y = 200+math.sin(event.time/200)\*60 end -- frameLoop Runtime:addEventListener("enterFrame", frameLoop)
The key is to divide the value that you give the math.sin in half for the vertical motion.